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

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