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