mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-25 18:22:23 +00:00
Fix tournament serializer
This commit is contained in:
parent
4084f7abb5
commit
d26dee3bcf
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user