2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-15 11:35:41 +00:00

Style fixes

This commit is contained in:
Oliver Walters
2017-04-14 16:12:54 +10:00
parent 5b49cff09a
commit e5f6de5d2b
5 changed files with 3 additions and 23 deletions

View File

@ -45,13 +45,6 @@ class StockList(generics.ListCreateAPIView):
return items
def create(self, request, *args, **kwargs):
# If the PART parameter is passed in the URL, use that
part_id = self.request.query_params.get('part', None)
if part_id:
request.data['part'] = part_id
return super(StockList, self).create(request, *args, **kwargs)
class LocationDetail(generics.RetrieveUpdateDestroyAPIView):
""" Return information on a specific stock location