working on ordering products by created date

This commit is contained in:
Sam
2021-02-24 13:28:22 +00:00
parent 739c79da60
commit d98ee02f32
6 changed files with 63 additions and 8 deletions

View File

@@ -33,9 +33,9 @@ class Product(models.Model):
sourcing_date = models.DateTimeField('Fecha de importación original 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)
stock = models.PositiveIntegerField('Stock', null=True)
stock = models.PositiveIntegerField('Stock', null=True, blank=True)
tags = TagField(to=TreeTag)
category = SingleTagField(blank=True, null=True) # main tag category
category = SingleTagField(null=True, blank=True) # main tag category
attributes = TagField(to=TreeTag, related_name='product_attributes')
identifiers = models.TextField('Identificador único de producto', null=True, blank=True)