1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-24 03:08:47 +02:00

Fix de la plupart des bugs

This commit is contained in:
Ehouarn
2025-05-27 18:56:49 +02:00
parent f2cd0b6d36
commit 16cfaa809a
6 changed files with 6513 additions and 2178 deletions

View File

@ -39,7 +39,9 @@ class WEIRegistrationForm(forms.ModelForm):
class Meta:
model = WEIRegistration
exclude = ('wei', 'clothing_cut')
fields = ['user', 'soge_credit', 'birth_date', 'gender', 'clothing_size',
'health_issues', 'emergency_contact_name', 'emergency_contact_phone', 'first_year',
'information_json']
widgets = {
"user": Autocomplete(
User,
@ -50,7 +52,7 @@ class WEIRegistrationForm(forms.ModelForm):
},
),
"birth_date": DatePickerInput(options={'minDate': '1900-01-01',
'maxDate': '2100-01-01'}),
'maxDate': '2100-01-01'}),
}
@ -81,11 +83,6 @@ 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"),