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