More tests and improved coverage (hopefully)

This commit is contained in:
eeintech
2021-04-06 14:30:03 -04:00
parent 7b4d3a3c07
commit 52b2b9582d
3 changed files with 57 additions and 16 deletions

View File

@ -142,12 +142,6 @@ class ManufacturerPartList(generics.ListCreateAPIView):
if part is not None:
queryset = queryset.filter(part=part)
# Filter by supplier part?
supplier_part = params.get('supplier_part', None)
if supplier_part is not None:
queryset = queryset.filter(supplier_parts=supplier_part)
# Filter by 'active' status of the part?
active = params.get('active', None)