history sync created when adding products from csv

This commit is contained in:
Sam
2021-02-04 10:56:34 +00:00
parent 0107d86a27
commit 89b68dd516
4 changed files with 22 additions and 9 deletions

View File

@@ -41,7 +41,7 @@ class Product(models.Model):
created = models.DateTimeField('date of creation', auto_now_add=True)
updated = models.DateTimeField('date last update', auto_now=True)
creator = models.ForeignKey('core.CustomUser', on_delete=models.DO_NOTHING, null=True, related_name='product')
# history = models.FoiregnKey('history.History', on_delete=models.DO_NOTHING, null=True)
history = models.ForeignKey('history.HistorySync', on_delete=models.DO_NOTHING, null=True, related_name='product')
def __str__(self):
return f"{self.name} / {self.sku}"