mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-04 00:42:16 +02:00
Fix test failures
This commit is contained in:
parent
dee826c5e3
commit
7815d58c2c
7 changed files with 88 additions and 9 deletions
|
@ -8,12 +8,13 @@ class PublicContact(TimeStampedModel):
|
|||
|
||||
class ContactTypeChoices(models.TextChoices):
|
||||
"""These are the types of contacts accepted by the registry."""
|
||||
|
||||
REGISTRANT = "registrant", "Registrant"
|
||||
ADMINISTRATIVE = "administrative", "Administrative"
|
||||
TECHNICAL = "technical", "Technical"
|
||||
SECURITY = "security", "Security"
|
||||
|
||||
contact_type = models.CharField(choices=ContactTypeChoices)
|
||||
contact_type = models.CharField(max_length=14, choices=ContactTypeChoices.choices)
|
||||
|
||||
# contact's full name
|
||||
name = models.TextField(null=False)
|
||||
|
@ -46,4 +47,4 @@ class PublicContact(TimeStampedModel):
|
|||
pw = models.TextField(null=False)
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.name} <{self.email}>"
|
||||
return f"{self.name} <{self.email}>"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue