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

@@ -43,3 +43,9 @@ class Product(models.Model):
creator = models.ForeignKey('core.CustomUser', on_delete=models.DO_NOTHING, null=True, related_name='product')
# history = models.FoiregnKey('history.History', on_delete=models.DO_NOTHING, null=True)
def __str__(self):
return f"{self.name} / {self.sku}"
class Meta:
verbose_name = "Producto"
verbose_name_plural = "Productos"