From abc246595d9b8dfeb443172c58cae49c48d5fbda Mon Sep 17 00:00:00 2001 From: Laurent Date: Fri, 21 Mar 2025 19:05:35 +0100 Subject: [PATCH] fix naming crash --- tournaments/models/group_stage.py | 2 +- tournaments/models/team_score.py | 2 +- tournaments/models/tournament.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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