Merge pull request #44 from SchrodingersGat/master

Style fix
This commit is contained in:
Oliver 2017-04-20 22:10:37 +10:00 committed by GitHub
commit a9abea2c7c

View File

@ -115,11 +115,10 @@ class StockItem(models.Model):
q = self.quantity + amount
if q < 0:
q = 0
self.quantity = q
self.save()
def __str__(self):
return "{n} x {part} @ {loc}".format(
n=self.quantity,