mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Make supplier part list API searchable
This commit is contained in:
parent
632be8f04f
commit
d5da93b9d0
@ -113,6 +113,14 @@ class SupplierPartList(generics.ListCreateAPIView):
|
|||||||
'supplier'
|
'supplier'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
search_fields = [
|
||||||
|
'SKU',
|
||||||
|
'supplier__name',
|
||||||
|
'manufacturer',
|
||||||
|
'description',
|
||||||
|
'MPN',
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
class SupplierPartDetail(generics.RetrieveUpdateDestroyAPIView):
|
class SupplierPartDetail(generics.RetrieveUpdateDestroyAPIView):
|
||||||
""" API endpoint for detail view of SupplierPart object
|
""" API endpoint for detail view of SupplierPart object
|
||||||
|
@ -85,6 +85,7 @@ class SupplierPartSerializer(serializers.ModelSerializer):
|
|||||||
'supplier_logo',
|
'supplier_logo',
|
||||||
'SKU',
|
'SKU',
|
||||||
'manufacturer',
|
'manufacturer',
|
||||||
|
'description',
|
||||||
'MPN',
|
'MPN',
|
||||||
'URL',
|
'URL',
|
||||||
'pricing',
|
'pricing',
|
||||||
|
Loading…
Reference in New Issue
Block a user