Remove max length

This commit is contained in:
zandercymatics 2024-04-04 08:33:18 -06:00
parent d8777c5dae
commit df3e628e61
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 0 additions and 10 deletions

View file

@ -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,

View file

@ -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,