Allow null values for StockItem.updated

- Just to make the tests run better
This commit is contained in:
Oliver Walters committed 2019-05-12 21:20:43 +10:00
1 parent 9e745d3e5f
commit 25e41b3fa2
2 files changed
+19 -1

No files matched your search

+1 -1
View File
@@ -211,7 +211,7 @@ class StockItem(models.Model):
quantity = models.PositiveIntegerField(validators=[MinValueValidator(0)], default=1)
updated = models.DateField(auto_now=True)
updated = models.DateField(auto_now=True, null=True)
# last time the stock was checked / counted
stocktake_date = models.DateField(blank=True, null=True)