added active booleand field to product, default False
This commit is contained in:
@@ -64,6 +64,7 @@ class Product(models.Model):
|
|||||||
category = SingleTagField(to=CategoryTag, null=True, blank=True, on_delete=models.SET_NULL) # main tag category
|
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')
|
attributes = TagField(to=AttributeTag, blank=True, related_name='product_attributes')
|
||||||
identifiers = models.TextField('Identificador único de producto', null=True, blank=True)
|
identifiers = models.TextField('Identificador único de producto', null=True, blank=True)
|
||||||
|
active = models.BooleanField('Mostrar producto', default=False)
|
||||||
|
|
||||||
# internal
|
# internal
|
||||||
created = models.DateTimeField('date of creation', auto_now_add=True)
|
created = models.DateTimeField('date of creation', auto_now_add=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user