mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-26 08:22:21 +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):
|
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',
|
||||||
|
Loading…
Reference in New Issue
Block a user