mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix for stock serializer
This commit is contained in:
parent
8ab1e4a3da
commit
f7ba84495b
@ -36,10 +36,10 @@ class LocationDetailSerializer(serializers.ModelSerializer):
|
||||
"""
|
||||
|
||||
# List of all stock items in this location
|
||||
items = StockItemSerializer(many=True)
|
||||
items = StockItemSerializer(many=True, read_only=True)
|
||||
|
||||
# List of all child locations under this one
|
||||
children = LocationBriefSerializer(many=True)
|
||||
children = LocationBriefSerializer(many=True, read_only=True)
|
||||
|
||||
class Meta:
|
||||
model = StockLocation
|
||||
|
Loading…
Reference in New Issue
Block a user