Almost there, needs some interface testing and tweaking

This commit is contained in:
eeintech
2021-03-30 18:08:33 -04:00
parent 9c8817d73b
commit 0b1f22c7fd
7 changed files with 103 additions and 16 deletions

View File

@ -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)