1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-26 05:02:23 +00:00

Fix tournament serializer

This commit is contained in:
Yohann D'ANELLO 2021-04-04 11:35:00 +02:00
parent 4084f7abb5
commit d26dee3bcf
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -53,6 +53,8 @@ class TeamSerializer(serializers.ModelSerializer):
class TournamentSerializer(serializers.ModelSerializer): class TournamentSerializer(serializers.ModelSerializer):
participations = serializers.ListSerializer(child=ParticipationSerializer())
class Meta: class Meta:
model = Tournament model = Tournament
fields = ('name', 'date_start', 'date_end', 'place', 'max_teams', 'price', 'remote', fields = ('name', 'date_start', 'date_end', 'place', 'max_teams', 'price', 'remote',