1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-08-04 06:30:27 +02:00

Merge branch 'wei' into 'main'

Wei

See merge request bde/nk20!338
This commit is contained in:
ehouarn
2025-08-03 01:38:27 +02:00
11 changed files with 211 additions and 46 deletions

View File

@@ -44,7 +44,7 @@ class WEIRegistrationForm(forms.ModelForm):
fields = [
'user', 'soge_credit', 'birth_date', 'gender', 'clothing_size',
'health_issues', 'emergency_contact_name', 'emergency_contact_phone',
'first_year', 'information_json', 'deposit_check', 'deposit_type'
'first_year', 'information_json', 'deposit_given', 'deposit_type'
]
widgets = {
"user": Autocomplete(
@@ -59,8 +59,8 @@ class WEIRegistrationForm(forms.ModelForm):
'minDate': '1900-01-01',
'maxDate': '2100-01-01'
}),
"deposit_check": forms.BooleanField(
required=False,
"deposit_given": forms.CheckboxInput(
attrs={'class': 'form-check-input'},
),
"deposit_type": forms.RadioSelect(),
}
@@ -161,7 +161,7 @@ class WEIMembership1AForm(WEIMembershipForm):
"""
Used to confirm registrations of first year members without choosing a bus now.
"""
deposit_check = None
deposit_given = None
roles = None
def clean(self):