mirror of https://gitlab.crans.org/bde/nk20
Bugfix
This commit is contained in:
parent
7fea619a9f
commit
e2426bd6a6
|
@ -300,11 +300,14 @@ class FutureUserDetailView(ProtectQuerysetMixin, LoginRequiredMixin, FormMixin,
|
||||||
# join_bde = True
|
# join_bde = True
|
||||||
# join_kfet = 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.
|
# 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)
|
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
|
# Calculate required registration fee
|
||||||
fee = 0
|
fee = 0
|
||||||
bde = Club.objects.get(name="BDE")
|
bde = Club.objects.get(name="BDE")
|
||||||
|
|
Loading…
Reference in New Issue