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',
|
'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',
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user