mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-08 04:40:57 +00:00
Add more options to StockList api
- Limit query results - Order by various fields
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user