Fix test failures

This commit is contained in:
Seamus Johnston 2023-03-07 10:56:49 -06:00
parent dee826c5e3
commit 7815d58c2c
No known key found for this signature in database
GPG key ID: 2F21225985069105
7 changed files with 88 additions and 9 deletions

View file

@ -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}>"