2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-02 03:30:54 +00:00

Allow null values for StockItem.updated

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

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)