Skip to content

Commit

Permalink
make county field work
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Nov 7, 2023
1 parent 4cdfc2e commit 4e028ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions portal/forms/organisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
class OrganisationForm(forms.ModelForm):
county = forms.ChoiceField(
choices=[
(None, "(select county)"),
# England
("Avon", "Avon"),
("Bath and North East Somerset", "Bath and North East Somerset"),
Expand Down Expand Up @@ -200,6 +201,7 @@ class OrganisationForm(forms.ModelForm):
("Wrexham", "Wrexham"),
],
required=False,
help_text="County (optional)",
)

class Meta(object):
Expand All @@ -208,12 +210,10 @@ class Meta(object):
widgets = {
"name": forms.TextInput(attrs={"autocomplete": "off", "placeholder": "Name of school or club"}),
"country": CountrySelectWidget(layout="{widget}"),
"county": forms.ChoiceWidget(choices=["a", "b"]),
}
help_texts = {
"name": "Name of school or club",
"country": "Country (optional)",
"county": "County (optional)",
}

def __init__(self, *args, **kwargs):
Expand Down

0 comments on commit 4e028ad

Please sign in to comment.