1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 09:58:23 +02:00

Add caution_check in the validation form, #96

This commit is contained in:
korenstin
2024-08-05 11:52:47 +02:00
parent d4e85e8215
commit a21b9275ea
3 changed files with 13 additions and 0 deletions

View File

@ -81,6 +81,11 @@ class WEIChooseBusForm(forms.Form):
class WEIMembershipForm(forms.ModelForm):
caution_check = forms.BooleanField(
required=False,
label=_("Caution check given"),
)
roles = forms.ModelMultipleChoiceField(
queryset=WEIRole.objects,
label=_("WEI Roles"),
@ -149,6 +154,7 @@ class WEIMembership1AForm(WEIMembershipForm):
"""
Used to confirm registrations of first year members without choosing a bus now.
"""
caution_check = None
roles = None
def clean(self):