mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-31 15:06:32 +02:00
linted
This commit is contained in:
parent
ddc98b6371
commit
f1ba7e9209
1 changed files with 8 additions and 6 deletions
|
@ -27,7 +27,7 @@ class OrganizationTypeForm(RegistrarForm):
|
||||||
choices=DomainRequest.OrganizationChoicesVerbose.choices,
|
choices=DomainRequest.OrganizationChoicesVerbose.choices,
|
||||||
widget=forms.RadioSelect,
|
widget=forms.RadioSelect,
|
||||||
error_messages={"required": "Select the type of organization you represent."},
|
error_messages={"required": "Select the type of organization you represent."},
|
||||||
label="What kind of U.S.-based government organization do you represent?"
|
label="What kind of U.S.-based government organization do you represent?",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ class OrganizationFederalForm(RegistrarForm):
|
||||||
federal_type = forms.ChoiceField(
|
federal_type = forms.ChoiceField(
|
||||||
choices=BranchChoices.choices,
|
choices=BranchChoices.choices,
|
||||||
widget=forms.RadioSelect,
|
widget=forms.RadioSelect,
|
||||||
label = "Which federal branch is your organization in?",
|
label="Which federal branch is your organization in?",
|
||||||
error_messages={"required": ("Select the part of the federal government your organization is in.")},
|
error_messages={"required": ("Select the part of the federal government your organization is in.")},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ class OrganizationElectionForm(RegistrarForm):
|
||||||
(False, "No"),
|
(False, "No"),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
label="Is your organization an election office?"
|
label="Is your organization an election office?",
|
||||||
)
|
)
|
||||||
|
|
||||||
def clean_is_election_board(self):
|
def clean_is_election_board(self):
|
||||||
|
@ -229,8 +229,10 @@ class SeniorOfficialForm(RegistrarForm):
|
||||||
email = forms.EmailField(
|
email = forms.EmailField(
|
||||||
label="Email",
|
label="Email",
|
||||||
max_length=None,
|
max_length=None,
|
||||||
error_messages={"invalid": ("Enter an email address in the required format, like name@example.com."),
|
error_messages={
|
||||||
"required": ("Enter an email address in the required format, like name@example.com.")},
|
"invalid": ("Enter an email address in the required format, like name@example.com."),
|
||||||
|
"required": ("Enter an email address in the required format, like name@example.com."),
|
||||||
|
},
|
||||||
validators=[
|
validators=[
|
||||||
MaxLengthValidator(
|
MaxLengthValidator(
|
||||||
320,
|
320,
|
||||||
|
@ -444,7 +446,7 @@ class OtherContactsForm(RegistrarForm):
|
||||||
message="Response must be less than 320 characters.",
|
message="Response must be less than 320 characters.",
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
help_text="Enter an email address in the required format, like name@example.com."
|
help_text="Enter an email address in the required format, like name@example.com.",
|
||||||
)
|
)
|
||||||
phone = PhoneNumberField(
|
phone = PhoneNumberField(
|
||||||
label="Phone",
|
label="Phone",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue