mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-26 03:42:22 +00:00
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):
|
class PoolSerializer(serializers.ModelSerializer):
|
||||||
passages = serializers.ListSerializer(child=PassageSerializer())
|
passages = serializers.ListSerializer(child=PassageSerializer(), read_only=True)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Pool
|
model = Pool
|
||||||
|
Loading…
Reference in New Issue
Block a user