Passages are read-only
This commit is contained in:
parent
d26dee3bcf
commit
46e75c7ae8
|
@ -25,7 +25,7 @@ class PassageSerializer(serializers.ModelSerializer):
|
|||
|
||||
|
||||
class PoolSerializer(serializers.ModelSerializer):
|
||||
passages = serializers.ListSerializer(child=PassageSerializer())
|
||||
passages = serializers.ListSerializer(child=PassageSerializer(), read_only=True)
|
||||
|
||||
class Meta:
|
||||
model = Pool
|
||||
|
|
Loading…
Reference in New Issue