From 154cf82123c6b7cd6d058db51e73fe6e9339aeaa Mon Sep 17 00:00:00 2001 From: Raz Date: Thu, 20 Feb 2025 11:12:28 +0100 Subject: [PATCH] fix walkout check when registering online --- tournaments/services/tournament_registration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tournaments/services/tournament_registration.py b/tournaments/services/tournament_registration.py index f7fbb3a..90492ba 100644 --- a/tournaments/services/tournament_registration.py +++ b/tournaments/services/tournament_registration.py @@ -307,5 +307,6 @@ class TournamentRegistrationService: def _license_already_registered(self, stripped_license): return PlayerRegistration.objects.filter( team_registration__tournament=self.tournament, - licence_id__startswith=stripped_license + licence_id__startswith=stripped_license, + team_registration__walk_out=False ).exists()