Fix max length

This commit is contained in:
zandercymatics 2024-04-09 10:13:27 -06:00
parent 25e737821a
commit ec371f1844
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
3 changed files with 7 additions and 21 deletions

View file

@ -314,8 +314,8 @@ class DomainSecurityEmailForm(forms.Form):
},
validators=[
MaxLengthValidator(
254,
message="Response must be less than 254 characters.",
320,
message="Response must be less than 320 characters.",
)
],
)

View file

@ -1,18 +0,0 @@
# Generated by Django 4.2.10 on 2024-04-09 14:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("registrar", "0081_create_groups_v10"),
]
operations = [
migrations.AlterField(
model_name="contact",
name="email",
field=models.EmailField(blank=True, db_index=True, max_length=320, null=True),
),
]

View file

@ -69,7 +69,11 @@ class PublicContact(TimeStampedModel):
pc = models.CharField(null=False, help_text="Contact's postal code")
cc = models.CharField(null=False, help_text="Contact's country code")
email = models.EmailField(null=False, help_text="Contact's email address")
voice = models.CharField(null=False, help_text="Contact's phone number. Must be in ITU.E164.2005 format")
voice = models.CharField(
null=False,
help_text="Contact's phone number. Must be in ITU.E164.2005 format",
max_length=320,
)
fax = models.CharField(
null=True,
blank=True,