This commit is contained in:
zandercymatics 2023-11-09 14:30:00 -07:00
parent cfe177612a
commit b61e58bcdc
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
4 changed files with 158 additions and 6 deletions

View file

@ -1,7 +1,6 @@
from django.db import models
from .utility.time_stamped_model import TimeStampedModel
class StatusChoices(models.TextChoices):
READY = "ready", "Ready"
ON_HOLD = "on hold", "On Hold"
@ -77,6 +76,38 @@ class TransitionDomain(TimeStampedModel):
"Duplication of registry's expiration " "date saved for ease of reporting"
),
)
first_name = models.TextField(
null=True,
blank=True,
help_text="First name",
verbose_name="first name / given name",
db_index=True,
)
middle_name = models.TextField(
null=True,
blank=True,
help_text="Middle name",
)
last_name = models.TextField(
null=True,
blank=True,
help_text="Last name",
)
title = models.TextField(
null=True,
blank=True,
help_text="Title",
)
email = models.TextField(
null=True,
blank=True,
help_text="Email",
)
phone = models.TextField(
null=True,
blank=True,
help_text="Phone",
)
def __str__(self):
return f"{self.username}, {self.domain_name}"
@ -95,4 +126,9 @@ class TransitionDomain(TimeStampedModel):
f"federal_agency: {self.federal_agency}, \n"
f"epp_creation_date: {self.epp_creation_date}, \n"
f"epp_expiration_date: {self.epp_expiration_date}, \n"
f"first_name: {self.first_name}, \n"
f"middle_name: {self.middle_name}, \n"
f"last_name: {self.last_name}, \n"
f"email: {self.email}, \n"
f"phone: {self.phone}, \n"
)