mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-29 12:33:17 +02:00
Initial
This commit is contained in:
parent
cfe177612a
commit
b61e58bcdc
4 changed files with 158 additions and 6 deletions
|
@ -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"
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue