Commit Graph

4 Commits

Author SHA1 Message Date
Daniel Schädler f5b610703c Add two new parameters to tournament
instant_finalists_amount is the amount of teams that instantly are in
the finals after the group stage ends.

intermediate_round_participants_amount is the amount of teams that have
a chance to advance after group stage but must play a relegation game to
actually do so.

Both of these values need to match, so that
instant_finalists_amount + (intermediate_round_participants_amount / 2)
is a power of 2. Or to be more precise, the power of two that is saved
in playoff_teams_amount of the tournament.
2019-06-13 13:21:24 +02:00
Thor77 d1bc3de6b0 Add owner_username attribute to Tournament
displaying the username of the user owning the tournament
2018-12-11 17:14:43 +01:00
Thor77 e3bbe2b773 Include description only in full Tournament 2018-12-11 17:12:55 +01:00
Thor77 d1f66b18d4
Add tournament serializers
SimpleTournamentSerializer excludes relationships and should be used for
listings
2018-11-25 22:55:48 +01:00