mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP fixes
This commit is contained in:
parent
1f8632c77c
commit
8d5850248e
@ -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):
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user