enabled django-suit for admin

This commit is contained in:
Sam
2021-01-26 12:32:19 +00:00
parent 7175dab55e
commit 9c88019700
4 changed files with 20 additions and 1 deletions

View File

@@ -42,4 +42,11 @@ class Company(models.Model):
# internal
created = models.DateTimeField('date of creation', auto_now_add=True)
updated = models.DateTimeField('date last update', auto_now=True)
creator = models.ForeignKey('core.CustomUser', on_delete=models.DO_NOTHING, null=True, related_name='company')
creator = models.ForeignKey('core.CustomUser', on_delete=models.DO_NOTHING, null=True, related_name='company')
def __str__(self):
return self.company_name
class Meta:
verbose_name = "Compañía"
verbose_name_plural = "Compañías"