serialized tags working

This commit is contained in:
Sam
2021-01-26 12:00:44 +00:00
parent 4437037710
commit 2a05beec07
5 changed files with 33 additions and 13 deletions

View File

@@ -32,9 +32,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)
tags = TagField( )
category = SingleTagField() # main tag category
attributes = TagField()
tags = TagField(force_lowercase=True,max_count=5, tree=True)
category = SingleTagField(null=True) # main tag category
attributes = TagField(force_lowercase=True,max_count=5, tree=True)
identifiers = models.TextField('Identificador único de producto', null=True, blank=True)
# internal