diff --git a/applications/forms/mentor.py b/applications/forms/mentor.py index 4a09de01..bcaf6cbf 100644 --- a/applications/forms/mentor.py +++ b/applications/forms/mentor.py @@ -30,6 +30,13 @@ class MentorApplicationForm(_BaseApplicationForm): initial=True, ) + gender = forms.ChoiceField( + required=True, + choices=[("", "- Select an option -")] + list(models.GENDERS), + label="What gender do you identify as?", + widget=forms.Select(), + ) + def clean_first_time_mentor(self): data = self.cleaned_data["first_time_mentor"] if data: @@ -119,7 +126,6 @@ def clean_projects(self): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) - self.fields["gender"].required = False bootstrap_field_info = { "👤 Personal Info": { diff --git a/applications/forms/volunteer.py b/applications/forms/volunteer.py index c9a5bb21..7850c29d 100644 --- a/applications/forms/volunteer.py +++ b/applications/forms/volunteer.py @@ -85,9 +85,15 @@ class VolunteerApplicationForm(_BaseApplicationForm): initial=True, ) + gender = forms.ChoiceField( + required=True, + choices=[("", "- Selecciona una opción -")] + list(models.GENDERS_ES), + label=" ¿Con qué género te identificas?", + widget=forms.Select(), + ) + def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) - self.fields["gender"].required = False bootstrap_field_info = { "👤 Información Personal": {