2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-09-15 15:11:34 +00:00

Part stuff

This commit is contained in:
Oliver
2018-04-30 22:30:15 +10:00
parent 4a2b6a5674
commit b24ddac0b8
5 changed files with 30 additions and 9 deletions

View File

@@ -130,7 +130,7 @@ class StockItem(models.Model):
# build = models.ForeignKey('build.Build', on_delete=models.SET_NULL, blank=True, null=True)
# Quantity of this stock item. Value may be overridden by other settings
quantity = models.PositiveIntegerField(validators=[MinValueValidator(0)])
quantity = models.PositiveIntegerField(validators=[MinValueValidator(0)], default=1)
# Last time this item was updated (set automagically)
updated = models.DateField(auto_now=True)