1
0
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:
Yohann D'ANELLO 2021-04-04 12:17:54 +02:00
parent d26dee3bcf
commit 46e75c7ae8
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

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