diff --git a/tournaments/models/group_stage.py b/tournaments/models/group_stage.py index aca47e8..e51c5e0 100644 --- a/tournaments/models/group_stage.py +++ b/tournaments/models/group_stage.py @@ -218,7 +218,7 @@ class GroupStageTeam: self.set_diff = 0 self.game_diff = 0 self.display_set_difference = False - if team_registration.playerregistration_set.count() == 0: + if team_registration.player_registrations.count() == 0: weight = None else: weight = team_registration.weight diff --git a/tournaments/models/team_score.py b/tournaments/models/team_score.py index 8be0b46..d30a990 100644 --- a/tournaments/models/team_score.py +++ b/tournaments/models/team_score.py @@ -113,7 +113,7 @@ class TeamScore(SideStoreModel): id = self.team_registration.id image = self.team_registration.logo is_winner = self.team_registration.id == match.winning_team_id - if self.team_registration.playerregistration_set.count() == 0: + if self.team_registration.player_registrations.count() == 0: weight = None else: weight = self.team_registration.weight diff --git a/tournaments/models/tournament.py b/tournaments/models/tournament.py index 924d53a..3f9ec6b 100644 --- a/tournaments/models/tournament.py +++ b/tournaments/models/tournament.py @@ -1453,7 +1453,7 @@ class TeamItem: self.names = team_registration.team_names() self.date = team_registration.local_call_date() self.registration_date = team_registration.registration_date - if team_registration.playerregistration_set.count() == 0: + if team_registration.player_registrations.count() == 0: weight = None else: weight = team_registration.weight