Add created_at and updated_at to Product model

This commit is contained in:
imperosol
2026-02-10 18:18:12 +01:00
parent 0d2430a5d4
commit bf08cc3288
3 changed files with 71 additions and 1 deletions

View File

@@ -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")