2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-05-04 08:43:34 +00:00

PEP fixes

This commit is contained in:
Oliver Walters
2019-05-26 00:22:05 +10:00
parent 75b21bdd8f
commit 6603d6e9ed
3 changed files with 6 additions and 8 deletions
-1
View File
@@ -285,7 +285,6 @@ class StockList(generics.ListCreateAPIView):
# Does the client wish to filter by stock location?
loc_id = self.request.query_params.get('location', None)
if loc_id:
try:
location = StockLocation.objects.get(pk=loc_id)