update
This commit is contained in:
parent
110d68aa87
commit
e834944dbc
3
.gitignore
vendored
3
.gitignore
vendored
@ -6,10 +6,11 @@ __pycache__
|
||||
**/*__pycache__
|
||||
db.sqlite3
|
||||
media
|
||||
./car_inventory/settings.py
|
||||
./car_inventory/settings*
|
||||
# Backup files #
|
||||
*.bak
|
||||
|
||||
|
||||
# If you are using PyCharm #
|
||||
# User-specific stuff
|
||||
.idea/**/workspace.xml
|
||||
|
||||
@ -115,6 +115,7 @@ WSGI_APPLICATION = 'car_inventory.wsgi.application'
|
||||
# }
|
||||
# }
|
||||
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
|
||||
@ -29,6 +29,16 @@ from django.db.models import FloatField
|
||||
from .mixins import LocalizedNameMixin
|
||||
from django_ledger.models import EntityModel
|
||||
|
||||
UNIT_CHOICES = (
|
||||
("Kg", _("Kg")),
|
||||
("L", _("L")),
|
||||
("m", _("m")),
|
||||
("cm", _("cm")),
|
||||
("m2", _("m2")),
|
||||
("m3", _("m3")),
|
||||
("m3", _("m3")),
|
||||
)
|
||||
|
||||
class CarMake(models.Model, LocalizedNameMixin):
|
||||
id_car_make = models.AutoField(primary_key=True)
|
||||
name = models.CharField(max_length=255)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user