Commit Graph

12 Commits

Author SHA1 Message Date
Daniel Schädler e3e96c0c1d 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-11 22:36:29 +02:00
Thor77 91fe9dba16
Add winner attribute to match serializer 2019-05-28 23:18:55 +02:00
Thor77 5126e5ae76 Add position to MatchSerializer 2018-12-11 17:14:43 +01: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 baf1acc10b Include team-relation in MatchScoreSerializer 2018-12-11 17:12:55 +01:00
Thor77 2f4df349c0 Add GroupScore, Group and StageSerializer 2018-12-11 17:12:55 +01:00
Thor77 bfe1c07fdc Include id-attribute for all serializers 2018-12-11 17:12:55 +01:00
Thor77 25b558105a Serialize has_one match relation 2018-11-30 14:42:12 +01:00
Daniel Schädler 68f9b3b2b3 Change Score to MatchScore & MatchScore score attribute to points
This is done to improve the naming and therefore make things easier to understand.
2018-11-30 14:15:48 +01:00
Thor77 d1f66b18d4
Add tournament serializers
SimpleTournamentSerializer excludes relationships and should be used for
listings
2018-11-25 22:55:48 +01:00
Thor77 bc88ddc54d Add serializer for Match, Score and Team 2018-11-21 18:57:59 +01:00