2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-05-04 00:33:34 +00:00

Style fixes

This commit is contained in:
Oliver Walters
2021-04-20 20:15:51 +10:00
parent c5fa0bb459
commit fd3e59650a
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -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):
-1
View File
@@ -244,7 +244,6 @@ class LocationSerializer(InvenTreeModelSerializer):
items = serializers.IntegerField(source='item_count', read_only=True)
class Meta:
model = StockLocation
fields = [