This commit is contained in:
nicomarg 2024-08-29 20:03:43 +02:00
parent 7fea619a9f
commit e2426bd6a6
1 changed files with 5 additions and 2 deletions

View File

@ -300,11 +300,14 @@ 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
bde = Club.objects.get(name="BDE")