mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 09:37:03 +02:00
Add migration
This commit is contained in:
parent
30eed60413
commit
98dbca3983
8 changed files with 1184 additions and 8 deletions
File diff suppressed because it is too large
Load diff
|
@ -1016,13 +1016,13 @@ class Domain(TimeStampedModel, DomainHelper):
|
|||
deleted = DateField(
|
||||
null=True,
|
||||
editable=False,
|
||||
help_text="Will appear blank unless the domain is in \"deleted\" state",
|
||||
help_text='Will appear blank unless the domain is in "deleted" state',
|
||||
)
|
||||
|
||||
first_ready = DateField(
|
||||
null=True,
|
||||
editable=False,
|
||||
help_text="Date when this domain first moved into \"ready\" state; date will never change",
|
||||
help_text='Date when this domain first moved into "ready" state; date will never change',
|
||||
)
|
||||
|
||||
def isActive(self):
|
||||
|
|
|
@ -175,7 +175,7 @@ class DomainInformation(TimeStampedModel):
|
|||
blank=True,
|
||||
related_name="submitted_domain_requests_information",
|
||||
on_delete=models.PROTECT,
|
||||
help_text="Person listed under \"your contact information\" in the request form",
|
||||
help_text='Person listed under "your contact information" in the request form',
|
||||
)
|
||||
|
||||
purpose = models.TextField(
|
||||
|
|
|
@ -606,7 +606,7 @@ class DomainRequest(TimeStampedModel):
|
|||
blank=True,
|
||||
related_name="submitted_domain_requests",
|
||||
on_delete=models.PROTECT,
|
||||
help_text="Person listed under \"your contact information\" in the request form; will receive email updates"
|
||||
help_text='Person listed under "your contact information" in the request form; will receive email updates',
|
||||
)
|
||||
|
||||
purpose = models.TextField(
|
||||
|
|
|
@ -27,7 +27,7 @@ class Host(TimeStampedModel):
|
|||
"registrar.Domain",
|
||||
on_delete=models.PROTECT,
|
||||
related_name="host", # access this Host via the Domain as `domain.host`
|
||||
help_text="Domain associated with this hosts",
|
||||
help_text="Domain associated with this host",
|
||||
)
|
||||
|
||||
def __str__(self):
|
||||
|
|
|
@ -33,6 +33,7 @@ class User(AbstractUser):
|
|||
default=None, # Set the default value to None
|
||||
null=True, # Allow the field to be null
|
||||
blank=True, # Allow the field to be blank
|
||||
help_text='Users in "restricted" status cannot make updates in the registrar or start a new request.',
|
||||
)
|
||||
|
||||
domains = models.ManyToManyField(
|
||||
|
|
|
@ -9,7 +9,6 @@ class VerifiedByStaff(TimeStampedModel):
|
|||
email = models.EmailField(
|
||||
null=False,
|
||||
blank=False,
|
||||
help_text="Email",
|
||||
db_index=True,
|
||||
)
|
||||
|
||||
|
@ -19,12 +18,12 @@ class VerifiedByStaff(TimeStampedModel):
|
|||
blank=True,
|
||||
on_delete=models.SET_NULL,
|
||||
related_name="verifiedby_user",
|
||||
help_text="Person who verified this user",
|
||||
)
|
||||
|
||||
notes = models.TextField(
|
||||
null=False,
|
||||
blank=False,
|
||||
help_text="Notes",
|
||||
)
|
||||
|
||||
class Meta:
|
||||
|
|
|
@ -12,7 +12,7 @@ class Website(TimeStampedModel):
|
|||
website = models.CharField(
|
||||
max_length=255,
|
||||
null=False,
|
||||
help_text="",
|
||||
help_text="An alternative domain or current website listed on a domain request",
|
||||
)
|
||||
|
||||
def __str__(self) -> str:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue