From 7b92e361154411f02641b99ba12b5ce976a839c8 Mon Sep 17 00:00:00 2001 From: Raz Date: Fri, 8 Nov 2024 12:13:53 +0100 Subject: [PATCH 1/3] fix error w gs team --- tournaments/models/group_stage.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tournaments/models/group_stage.py b/tournaments/models/group_stage.py index 863abea..7572b5a 100644 --- a/tournaments/models/group_stage.py +++ b/tournaments/models/group_stage.py @@ -197,6 +197,7 @@ class GroupStageTeam: self.display_set_difference = False self.weight = team_registration.weight self.team_registration = team_registration + self.walk_out = team_registration.walk_out def wins_losses(self): return f"{self.wins}/{self.losses}" From 286746e3cdef558a5b0748f2e2c2b719afe56db8 Mon Sep 17 00:00:00 2001 From: Raz Date: Fri, 8 Nov 2024 12:51:07 +0100 Subject: [PATCH 2/3] Revert "fix error w gs team" This reverts commit 7b92e361154411f02641b99ba12b5ce976a839c8. --- tournaments/models/group_stage.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tournaments/models/group_stage.py b/tournaments/models/group_stage.py index 7572b5a..863abea 100644 --- a/tournaments/models/group_stage.py +++ b/tournaments/models/group_stage.py @@ -197,7 +197,6 @@ class GroupStageTeam: self.display_set_difference = False self.weight = team_registration.weight self.team_registration = team_registration - self.walk_out = team_registration.walk_out def wins_losses(self): return f"{self.wins}/{self.losses}" From d9617ebad5605e0d190a189ddcab4480dfd49d7e Mon Sep 17 00:00:00 2001 From: Laurent Date: Sat, 9 Nov 2024 12:34:08 +0100 Subject: [PATCH 3/3] tests if the team has a name to display the summons --- tournaments/models/team_registration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tournaments/models/team_registration.py b/tournaments/models/team_registration.py index 709c61f..3252031 100644 --- a/tournaments/models/team_registration.py +++ b/tournaments/models/team_registration.py @@ -87,7 +87,7 @@ class TeamRegistration(models.Model): return "--" def is_valid_for_summon(self): - return len(self.playerregistration_set.all()) > 0 + return len(self.playerregistration_set.all()) > 0 or self.name is not None def initial_weight(self): if self.locked_weight is None: