From: Yoan Le Clanche Date: Thu, 24 Sep 2026 15:40:36 +0000 (+0200) Subject: Remove required from new fields X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=3ffe86d0384d3d47cc8f72779778b3fe3e9604c3;p=teleforma.git Remove required from new fields --- diff --git a/teleforma/forms.py b/teleforma/forms.py index 132d289b..44531a2d 100644 --- a/teleforma/forms.py +++ b/teleforma/forms.py @@ -93,9 +93,11 @@ class UserForm(ModelForm): training_adaptability = forms.ChoiceField(choices=TRUE_FALSE_CHOICES, label="Avez-vous besoin d'adaptabilité de formation ?", + required=False, widget=forms.Select()) disability = forms.ChoiceField(choices=TRUE_FALSE_CHOICES, label='Êtes-vous en situation de handicap ?', + required=False, widget=forms.Select()) procedure = ModelChoiceField(label=_('Procedure'), diff --git a/teleforma/templates/registration/registration_form.html b/teleforma/templates/registration/registration_form.html index 1692f15c..a7fa7fff 100644 --- a/teleforma/templates/registration/registration_form.html +++ b/teleforma/templates/registration/registration_form.html @@ -71,7 +71,7 @@ {% with field=form|get_item:fieldname %}
{{ field.errors }}