Part stuff

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

No files matched your search

+1 -1
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)