Add more options to StockList api

- Limit query results
- Order by various fields
This commit is contained in:
Oliver Walters committed 2021-02-23 13:43:26 +11:00
1 parent 66e1b180e4
commit 949a541ee0
2 files changed
+23 -3

No files matched your search

+1 -1
View File
@@ -626,7 +626,7 @@ class PartList(generics.ListCreateAPIView):
queryset = queryset.filter(pk__in=parts_need_stock)
# Limit choices
# Limit number of results
limit = params.get('limit', None)
if limit is not None: