From d26dee3bcf2448281568160b0ae888472c40eb5a Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sun, 4 Apr 2021 11:35:00 +0200 Subject: [PATCH] Fix tournament serializer --- apps/participation/api/serializers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/participation/api/serializers.py b/apps/participation/api/serializers.py index e9e8da0..6e87aa9 100644 --- a/apps/participation/api/serializers.py +++ b/apps/participation/api/serializers.py @@ -53,6 +53,8 @@ class TeamSerializer(serializers.ModelSerializer): class TournamentSerializer(serializers.ModelSerializer): + participations = serializers.ListSerializer(child=ParticipationSerializer()) + class Meta: model = Tournament fields = ('name', 'date_start', 'date_end', 'place', 'max_teams', 'price', 'remote',