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

@@ -9,9 +9,9 @@ class HistorySync(models.Model):
company = models.ForeignKey('companies.Company', on_delete=models.DO_NOTHING, null=True)
rss_url = models.URLField('URL del feed', null=True, blank=True)
sync_date = models.DateTimeField('Fecha de lanzamiento', null=True)
sync_date = models.DateTimeField('Fecha de lanzamiento', null=True, blank=True)
result = models.TextField('Resultado', null=True, blank=True)
quantity = models.PositiveIntegerField('Productos importados', null=True)
quantity = models.PositiveIntegerField('Productos importados', null=True, blank=True)
# internal
created = models.DateTimeField('date of creation', auto_now_add=True)