From 5d5aba938b48d778a45f50f5210aef8ce57d6445 Mon Sep 17 00:00:00 2001 From: Raz Date: Tue, 1 Apr 2025 10:42:52 +0200 Subject: [PATCH] new style list of tournaments --- tournaments/models/tournament.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tournaments/models/tournament.py b/tournaments/models/tournament.py index b117f62..f787a80 100644 --- a/tournaments/models/tournament.py +++ b/tournaments/models/tournament.py @@ -1129,6 +1129,8 @@ class Tournament(BaseModel): return OnlineRegistrationStatus.CANCELED if self.end_date is not None: return OnlineRegistrationStatus.ENDED_WITH_RESULTS + if self.enable_online_registration is False: + return OnlineRegistrationStatus.NOT_ENABLED if self.supposedly_in_progress(): return OnlineRegistrationStatus.ENDED if self.closed_registration_date is not None: