From f15a0bdad47685f986fb11ba5fe140fa4a766b71 Mon Sep 17 00:00:00 2001 From: CocoByte Date: Tue, 5 Mar 2024 13:44:52 -0700 Subject: [PATCH] hot fix for phone number fields (changed to char field -- this will also preserve the line-height change requested by the designers. Originally this field was a test field) --- src/registrar/models/public_contact.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/registrar/models/public_contact.py b/src/registrar/models/public_contact.py index 989dfb0cd..cdd0d6a42 100644 --- a/src/registrar/models/public_contact.py +++ b/src/registrar/models/public_contact.py @@ -8,8 +8,6 @@ from registrar.utility.enums import DefaultEmail from .utility.time_stamped_model import TimeStampedModel -from phonenumber_field.modelfields import PhoneNumberField # type: ignore - def get_id(): """Generate a 16 character registry ID with a low probability of collision.""" @@ -71,8 +69,8 @@ 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 = PhoneNumberField(null=False, help_text="Contact's phone number. Must be in ITU.E164.2005 format") - fax = PhoneNumberField( + voice = models.CharField(null=False, help_text="Contact's phone number. Must be in ITU.E164.2005 format") + fax = models.CharField( null=True, help_text="Contact's fax number (null ok). Must be in ITU.E164.2005 format.", )