mirror of
https://github.com/Superredstone/patrickcanal.it.git
synced 2026-09-23 02:41:14 +02:00
feat(portfolio): add company color
This commit is contained in:
@@ -9,6 +9,13 @@ class Company(models.Model):
|
||||
location = models.CharField(
|
||||
verbose_name=_("Location"), max_length=255, blank=False, null=False
|
||||
)
|
||||
color = models.CharField(
|
||||
verbose_name=_("Color (hex)"),
|
||||
max_length=6,
|
||||
null=False,
|
||||
blank=False,
|
||||
default="000000",
|
||||
)
|
||||
logo = models.FileField(upload_to="portfolio/companies_logo/")
|
||||
|
||||
def __str__(self):
|
||||
|
||||
Reference in New Issue
Block a user