From c094c9a9f9292823cd5cb0847c230362200c57e2 Mon Sep 17 00:00:00 2001 From: pablogg Date: Thu, 4 Mar 2021 13:20:41 +0100 Subject: [PATCH] Adding blank to Tag and attributes --- products/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/products/models.py b/products/models.py index 699ab0a..7d7bc92 100644 --- a/products/models.py +++ b/products/models.py @@ -61,9 +61,9 @@ class Product(models.Model): update_date = models.DateTimeField('Fecha de actualización de producto', null=True, blank=True) discount = models.DecimalField('Descuento', max_digits=5, decimal_places=2, null=True, blank=True) stock = models.PositiveIntegerField('Stock', null=True, blank=True) - tags = TagField(to=TreeTag) + tags = TagField(to=TreeTag, blank=True) category = SingleTagField(to=CategoryTag, null=True, blank=True, on_delete=models.SET_NULL) # main tag category - attributes = TagField(to=AttributeTag, related_name='product_attributes') + attributes = TagField(to=AttributeTag, related_name='product_attributes', blank=True) identifiers = models.TextField('Identificador único de producto', null=True, blank=True) # internal