mirror of
https://github.com/ae-utbm/sith.git
synced 2026-02-11 01:48:18 +00:00
Add created_at and updated_at to Product model
This commit is contained in:
@@ -399,6 +399,8 @@ class Product(models.Model):
|
||||
Group, related_name="products", verbose_name=_("buying groups"), blank=True
|
||||
)
|
||||
archived = models.BooleanField(_("archived"), default=False)
|
||||
created_at = models.DateTimeField(_("created at"), auto_now_add=True)
|
||||
updated_at = models.DateTimeField(_("updated at"), auto_now=True)
|
||||
|
||||
class Meta:
|
||||
verbose_name = _("product")
|
||||
|
||||
Reference in New Issue
Block a user