From cebba6909c7271b8e7524a032441f3e4d16eb48a Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sun, 9 Aug 2020 21:21:12 +1000 Subject: [PATCH] Revert thing --- InvenTree/stock/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/stock/api.py b/InvenTree/stock/api.py index a10262ce9c..7284f8d5cd 100644 --- a/InvenTree/stock/api.py +++ b/InvenTree/stock/api.py @@ -518,8 +518,8 @@ class StockList(generics.ListCreateAPIView): if serial_number_lte is not None: queryset = queryset.filter(serial__lte=serial_number_lte) - # Filter by "in_stock" status (default behaviour is "True") - in_stock = params.get('in_stock', True) + # Filter by "in_stock" status + in_stock = params.get('in_stock', None) if in_stock is not None: in_stock = str2bool(in_stock)