From 88103b63d2f8ded8a75ba5ec57c1248a2cc1fc2a Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 12 Apr 2019 22:46:48 +1000 Subject: [PATCH] Cannot filter by STATUS - Is this because it is a dict? - Need to address this in the future --- InvenTree/stock/api.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/InvenTree/stock/api.py b/InvenTree/stock/api.py index 7516824318..d2c1c13805 100644 --- a/InvenTree/stock/api.py +++ b/InvenTree/stock/api.py @@ -226,7 +226,7 @@ class StockList(generics.ListCreateAPIView): 'supplier_part', 'customer', 'belongs_to', - 'status', + #'status', ] @@ -304,8 +304,6 @@ location_endpoints = [ stock_api_urls = [ - # Detail for a single stock item - url(r'^(?P[0-9]+)/', include(stock_endpoints)), url(r'location/?', StockLocationList.as_view(), name='api-location-list'), @@ -319,5 +317,8 @@ stock_api_urls = [ url(r'^tree/?', StockCategoryTree.as_view(), name='api-stock-tree'), + # Detail for a single stock item + url(r'^(?P\d+)/', include(stock_endpoints)), + url(r'^.*$', StockList.as_view(), name='api-stock-list'), ] \ No newline at end of file