Style fix

This commit is contained in:
Oliver Walters 2017-04-20 22:10:13 +10:00
parent 2c28ef6b3c
commit 41485e0e0f

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,