This commit is contained in:
gitea 2024-12-26 09:46:37 +00:00
parent 110d68aa87
commit e834944dbc
3 changed files with 13 additions and 1 deletions

3
.gitignore vendored
View File

@ -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

View File

@ -115,6 +115,7 @@ WSGI_APPLICATION = 'car_inventory.wsgi.application'
# }
# }
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',

View File

@ -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)