Skip to content
Open

fix13 #413

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion applications/forms/mentor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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": {
Expand Down
8 changes: 7 additions & 1 deletion applications/forms/volunteer.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,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": {
Expand Down