mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Almost there, needs some interface testing and tweaking
This commit is contained in:
@ -235,6 +235,12 @@ class SupplierPartList(generics.ListCreateAPIView):
|
||||
if part is not None:
|
||||
queryset = queryset.filter(part=part)
|
||||
|
||||
# Filter by manufacturer part?
|
||||
manufacturer_part = params.get('manufacturer_part', None)
|
||||
|
||||
if manufacturer_part is not None:
|
||||
queryset = queryset.filter(manufacturer_part=manufacturer_part)
|
||||
|
||||
# Filter by 'active' status of the part?
|
||||
active = params.get('active', None)
|
||||
|
||||
|
Reference in New Issue
Block a user