mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
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:
commit
f1797dbe2f
@ -158,6 +158,7 @@ class ManufacturerPartList(generics.ListCreateAPIView):
|
||||
'manufacturer__name',
|
||||
'description',
|
||||
'MPN',
|
||||
'part__IPN',
|
||||
'part__name',
|
||||
'part__description',
|
||||
]
|
||||
@ -355,6 +356,7 @@ class SupplierPartList(generics.ListCreateAPIView):
|
||||
'manufacturer_part__manufacturer__name',
|
||||
'description',
|
||||
'manufacturer_part__MPN',
|
||||
'part__IPN',
|
||||
'part__name',
|
||||
'part__description',
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user