From 46e75c7ae84fafae89de452c9c6e14724ce7b7a8 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sun, 4 Apr 2021 12:17:54 +0200 Subject: [PATCH] Passages are read-only --- apps/participation/api/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/participation/api/serializers.py b/apps/participation/api/serializers.py index 6e87aa9..0858030 100644 --- a/apps/participation/api/serializers.py +++ b/apps/participation/api/serializers.py @@ -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