From e2426bd6a64cea0c463a08ba6cdbeb17498dae2e Mon Sep 17 00:00:00 2001 From: nicomarg Date: Thu, 29 Aug 2024 20:03:43 +0200 Subject: [PATCH] Bugfix --- apps/registration/views.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/registration/views.py b/apps/registration/views.py index 00c718be..99159a78 100644 --- a/apps/registration/views.py +++ b/apps/registration/views.py @@ -300,10 +300,13 @@ class FutureUserDetailView(ProtectQuerysetMixin, LoginRequiredMixin, FormMixin, # join_bde = True # join_kfet = True - if not join_bde or any(b for _, b in join_clubs): + if not (join_bde or any(b for _, b in join_clubs)): # This software belongs to the BDE. - form.add_error('join_bde', _("You must join the BDE.")) + form.add_error('join_bde', _("You must join a club.")) return super().form_invalid(form) + + if join_kfet and not join_bde: + forl.add_error('join_bde', _("You must also join the parent club BDE.")) # Calculate required registration fee fee = 0