1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-22 23:42:25 +00:00
This commit is contained in:
nicomarg 2024-08-29 20:03:43 +02:00
parent 7fea619a9f
commit e2426bd6a6

View File

@ -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