Adding blank to Tag and attributes
This commit is contained in:
@@ -61,9 +61,9 @@ class Product(models.Model):
|
|||||||
update_date = models.DateTimeField('Fecha de actualización de producto', null=True, blank=True)
|
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)
|
discount = models.DecimalField('Descuento', max_digits=5, decimal_places=2, null=True, blank=True)
|
||||||
stock = models.PositiveIntegerField('Stock', 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
|
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)
|
identifiers = models.TextField('Identificador único de producto', null=True, blank=True)
|
||||||
|
|
||||||
# internal
|
# internal
|
||||||
|
|||||||
Reference in New Issue
Block a user