mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-07 19:01:17 +00:00
Fix for stock serializer
This commit is contained in:
1 parent
8ab1e4a3da
commit
f7ba84495b
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user