mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-12 20:49:41 +02:00
Fix bug
This commit is contained in:
parent
6d13614521
commit
e4c83751bf
3 changed files with 48 additions and 3 deletions
|
@ -369,7 +369,15 @@ class AuthorizingOfficialForm(RegistrarForm):
|
|||
)
|
||||
email = forms.EmailField(
|
||||
label="Email",
|
||||
max_length=254,
|
||||
error_messages={"invalid": ("Enter an email address in the required format, like name@example.com.")},
|
||||
# This validator should exist in the event that a preexisting field is of invalid length
|
||||
validators=[
|
||||
MaxLengthValidator(
|
||||
254,
|
||||
message="Response must be less than 254 characters.",
|
||||
)
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
|
@ -566,7 +574,15 @@ class YourContactForm(RegistrarForm):
|
|||
)
|
||||
email = forms.EmailField(
|
||||
label="Email",
|
||||
max_length=254,
|
||||
error_messages={"invalid": ("Enter your email address in the required format, like name@example.com.")},
|
||||
# This validator should exist in the event that a preexisting field is of invalid length
|
||||
validators=[
|
||||
MaxLengthValidator(
|
||||
254,
|
||||
message="Response must be less than 254 characters.",
|
||||
)
|
||||
],
|
||||
)
|
||||
phone = PhoneNumberField(
|
||||
label="Phone",
|
||||
|
@ -621,10 +637,18 @@ class OtherContactsForm(RegistrarForm):
|
|||
)
|
||||
email = forms.EmailField(
|
||||
label="Email",
|
||||
max_length=254,
|
||||
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."),
|
||||
},
|
||||
# This validator should exist in the event that a preexisting field is of invalid length
|
||||
validators=[
|
||||
MaxLengthValidator(
|
||||
254,
|
||||
message="Response must be less than 254 characters.",
|
||||
)
|
||||
],
|
||||
)
|
||||
phone = PhoneNumberField(
|
||||
label="Phone",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue