Cannot filter by STATUS

- Is this because it is a dict?
- Need to address this in the future
This commit is contained in:
Oliver Walters 2019-04-12 22:46:48 +10:00
parent 7a7b0aea33
commit 88103b63d2

View File

@ -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<pk>[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<pk>\d+)/', include(stock_endpoints)),
url(r'^.*$', StockList.as_view(), name='api-stock-list'),
]