PEP fixes

This commit is contained in:
Oliver Walters 2019-04-25 23:25:52 +10:00
parent 1f8632c77c
commit 8d5850248e
2 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ class StockMove(APIView):
if len(errors) > 0:
raise ValidationError(errors)
n = 0
n = 0
for part in parts:
if part.move(location, data.get('notes'), request.user):

View File

@ -335,7 +335,7 @@ class StockItemTracking(models.Model):
def get_absolute_url(self):
return '/stock/track/{pk}'.format(pk=self.id)
#return reverse('stock-tracking-detail', kwargs={'pk': self.id})
# return reverse('stock-tracking-detail', kwargs={'pk': self.id})
# Stock item
item = models.ForeignKey(StockItem, on_delete=models.CASCADE,