mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-05 18:53:28 +02:00
Fixed models and added migrations
This commit is contained in:
parent
cc2e24d451
commit
183c4cdeb7
7 changed files with 877 additions and 6 deletions
|
@ -8,6 +8,7 @@ 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."""
|
||||
|
@ -69,8 +70,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 = models.PhoneNumberField(null=False, help_text="Contact's phone number. Must be in ITU.E164.2005 format")
|
||||
fax = models.PhoneNumberField(
|
||||
voice = PhoneNumberField(null=False, help_text="Contact's phone number. Must be in ITU.E164.2005 format")
|
||||
fax = PhoneNumberField(
|
||||
null=True,
|
||||
help_text="Contact's fax number (null ok). Must be in ITU.E164.2005 format.",
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue