mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 11:35:41 +00:00
Style fixes
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user