mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-29 12:33:17 +02:00
added Transition Domain model
This commit is contained in:
parent
328cc5b468
commit
0370dd9f83
5 changed files with 118 additions and 1 deletions
45
src/registrar/models/transition_domain.py
Normal file
45
src/registrar/models/transition_domain.py
Normal file
|
@ -0,0 +1,45 @@
|
|||
from django.db import models
|
||||
|
||||
from .utility.time_stamped_model import TimeStampedModel
|
||||
|
||||
class TransitionDomain(TimeStampedModel):
|
||||
"""Transition Domain model stores information about the state of a domain upon transition between registry providers"""
|
||||
|
||||
class StatusChoices(models.TextChoices):
|
||||
CREATED = "created", "Created"
|
||||
HOLD = "hold", "Hold"
|
||||
|
||||
username = models.TextField(
|
||||
null=False,
|
||||
blank=False,
|
||||
verbose_name="Username",
|
||||
help_text="Username - this will be an email address",
|
||||
)
|
||||
domain_name = models.TextField(
|
||||
null=True,
|
||||
blank=True,
|
||||
verbose_name="Domain name",
|
||||
)
|
||||
status = models.CharField(
|
||||
max_length=255,
|
||||
null=False,
|
||||
blank=True,
|
||||
choices=StatusChoices.choices,
|
||||
verbose_name="Status",
|
||||
help_text="domain status during the transfer",
|
||||
)
|
||||
ignoreServerHold = models.BooleanField(
|
||||
null=False,
|
||||
default=False, #--COMMENT: this was not specified in the ticket #921
|
||||
verbose_name="ignore Server Hold",
|
||||
help_text="specifies whether to ignore server hold",
|
||||
)
|
||||
email_sent = models.BooleanField(
|
||||
null=False,
|
||||
default=False,
|
||||
verbose_name="email sent",
|
||||
help_text="indicates whether email was sent",
|
||||
)
|
||||
|
||||
def __str__(self):
|
||||
return self.username
|
Loading…
Add table
Add a link
Reference in a new issue