Add search results for part-category and stock-location

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

No files matched your search

+5
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