From ae25f5fadc151b4c2f9dbe751e5f5c90e1ef2ef7 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 5 Mar 2021 11:29:27 +0000 Subject: [PATCH] added active booleand field to product, default False --- products/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/products/models.py b/products/models.py index 63ad73a..50cde7f 100644 --- a/products/models.py +++ b/products/models.py @@ -64,6 +64,7 @@ class Product(models.Model): category = SingleTagField(to=CategoryTag, null=True, blank=True, on_delete=models.SET_NULL) # main tag category attributes = TagField(to=AttributeTag, blank=True, related_name='product_attributes') identifiers = models.TextField('Identificador Ășnico de producto', null=True, blank=True) + active = models.BooleanField('Mostrar producto', default=False) # internal created = models.DateTimeField('date of creation', auto_now_add=True)