mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Style fixes
This commit is contained in:
parent
c5fa0bb459
commit
fd3e59650a
@ -291,9 +291,9 @@ class StockLocationList(generics.ListCreateAPIView):
|
|||||||
|
|
||||||
params = self.request.query_params
|
params = self.request.query_params
|
||||||
|
|
||||||
cascade = str2bool(params.get('cascade', False))
|
|
||||||
|
|
||||||
loc_id = params.get('parent', None)
|
loc_id = params.get('parent', None)
|
||||||
|
|
||||||
|
cascade = str2bool(params.get('cascade', False))
|
||||||
|
|
||||||
# Look for top-level locations
|
# Look for top-level locations
|
||||||
if isNull(loc_id):
|
if isNull(loc_id):
|
||||||
|
@ -244,7 +244,6 @@ class LocationSerializer(InvenTreeModelSerializer):
|
|||||||
|
|
||||||
items = serializers.IntegerField(source='item_count', read_only=True)
|
items = serializers.IntegerField(source='item_count', read_only=True)
|
||||||
|
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = StockLocation
|
model = StockLocation
|
||||||
fields = [
|
fields = [
|
||||||
|
Loading…
Reference in New Issue
Block a user