Add properties

This commit is contained in:
2022-04-07 11:11:52 +02:00
parent 9a1740f7c1
commit 2b9e604b21
7 changed files with 118 additions and 5 deletions

View File

@@ -6,6 +6,17 @@ from django_countries.fields import CountryField
from dcc.utils import get_image_preview, slugify
class Property(models.Model):
name = models.CharField(max_length=128, unique=True)
class Meta:
verbose_name_plural = "Properties"
ordering = ["name"]
def __str__(self):
return self.name
class Manufacturer(models.Model):
name = models.CharField(max_length=128, unique=True)
category = models.CharField(