added missing history field to Company

This commit is contained in:
Sam
2021-02-04 11:22:25 +00:00
parent 12c0ddcbe8
commit e30af924f0
3 changed files with 8 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ class HistorySync(models.Model):
Keeps an historic record of the importation of products for a company
"""
company = models.ForeignKey('companies.Company', on_delete=models.DO_NOTHING, null=True)
company = models.ForeignKey('companies.Company', on_delete=models.DO_NOTHING, null=True, related_name='history_company')
rss_url = models.URLField('URL del feed', null=True, blank=True)
sync_date = models.DateTimeField('Fecha de lanzamiento', null=True)
result = models.TextField('Resultado', null=True, blank=True)