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