mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-10 06:24:45 +02:00
Remove max length
This commit is contained in:
parent
d8777c5dae
commit
df3e628e61
2 changed files with 0 additions and 10 deletions
|
@ -33,9 +33,7 @@ class DomainAddUserForm(forms.Form):
|
|||
|
||||
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,
|
||||
|
@ -302,12 +300,10 @@ class DomainSecurityEmailForm(forms.Form):
|
|||
|
||||
security_email = forms.EmailField(
|
||||
label="Security email (optional)",
|
||||
max_length=254,
|
||||
required=False,
|
||||
error_messages={
|
||||
"invalid": str(SecurityEmailError(code=SecurityEmailErrorCodes.BAD_DATA)),
|
||||
},
|
||||
# This validator should exist in the event that a preexisting field is of invalid length
|
||||
validators=[
|
||||
MaxLengthValidator(
|
||||
254,
|
||||
|
|
|
@ -369,9 +369,7 @@ 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,
|
||||
|
@ -574,9 +572,7 @@ 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,
|
||||
|
@ -637,12 +633,10 @@ 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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue