mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP fixes
This commit is contained in:
parent
a0ca20ab04
commit
0bda9c974e
@ -1292,7 +1292,7 @@ class BuildItem(models.Model):
|
|||||||
user,
|
user,
|
||||||
notes
|
notes
|
||||||
)
|
)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# Simply remove the items from stock
|
# Simply remove the items from stock
|
||||||
item.take_stock(
|
item.take_stock(
|
||||||
|
@ -1165,7 +1165,7 @@ class StockItemTestResultList(generics.ListCreateAPIView):
|
|||||||
build = params.get('build', None)
|
build = params.get('build', None)
|
||||||
|
|
||||||
if build is not None:
|
if build is not None:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
build = Build.objects.get(pk=build)
|
build = Build.objects.get(pk=build)
|
||||||
|
|
||||||
@ -1174,7 +1174,6 @@ class StockItemTestResultList(generics.ListCreateAPIView):
|
|||||||
except (ValueError, Build.DoesNotExist):
|
except (ValueError, Build.DoesNotExist):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
# Filter by stock item
|
# Filter by stock item
|
||||||
item = params.get('stock_item', None)
|
item = params.get('stock_item', None)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user