Merge pull request #1771 from SchrodingersGat/company-part-search-fix

API: Allow search of IPN field for ManufacturerPart and SupplierPart
This commit is contained in:
Oliver 2021-07-08 11:30:58 +10:00 committed by GitHub
commit f1797dbe2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -158,6 +158,7 @@ class ManufacturerPartList(generics.ListCreateAPIView):
'manufacturer__name', 'manufacturer__name',
'description', 'description',
'MPN', 'MPN',
'part__IPN',
'part__name', 'part__name',
'part__description', 'part__description',
] ]
@ -355,6 +356,7 @@ class SupplierPartList(generics.ListCreateAPIView):
'manufacturer_part__manufacturer__name', 'manufacturer_part__manufacturer__name',
'description', 'description',
'manufacturer_part__MPN', 'manufacturer_part__MPN',
'part__IPN',
'part__name', 'part__name',
'part__description', 'part__description',
] ]