2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 11:05:41 +00:00

Add search results for part-category and stock-location

This commit is contained in:
Oliver Walters
2019-06-02 19:15:05 +10:00
parent 3427f81a34
commit fd2e2a71f9
6 changed files with 83 additions and 2 deletions

View File

@ -236,6 +236,11 @@ class StockLocationList(generics.ListCreateAPIView):
'parent',
]
search_fields = [
'name',
'description',
]
class StockList(generics.ListCreateAPIView):
""" API endpoint for list view of Stock objects