Fix for stock serializer

This commit is contained in:
Oliver Walters 2017-04-13 00:31:03 +10:00
parent 8ab1e4a3da
commit f7ba84495b

View File

@ -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