diff --git a/InvenTree/stock/api.py b/InvenTree/stock/api.py index 08599ea858..a76fd801bd 100644 --- a/InvenTree/stock/api.py +++ b/InvenTree/stock/api.py @@ -291,9 +291,9 @@ class StockLocationList(generics.ListCreateAPIView): params = self.request.query_params - cascade = str2bool(params.get('cascade', False)) - loc_id = params.get('parent', None) + + cascade = str2bool(params.get('cascade', False)) # Look for top-level locations if isNull(loc_id): diff --git a/InvenTree/stock/serializers.py b/InvenTree/stock/serializers.py index 2439bb9330..5b00c1dd17 100644 --- a/InvenTree/stock/serializers.py +++ b/InvenTree/stock/serializers.py @@ -244,7 +244,6 @@ class LocationSerializer(InvenTreeModelSerializer): items = serializers.IntegerField(source='item_count', read_only=True) - class Meta: model = StockLocation fields = [