Add migration

This commit is contained in:
zandercymatics 2024-04-15 09:55:19 -06:00
parent 30eed60413
commit 98dbca3983
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
8 changed files with 1184 additions and 8 deletions

View file

@ -1016,13 +1016,13 @@ class Domain(TimeStampedModel, DomainHelper):
deleted = DateField( deleted = DateField(
null=True, null=True,
editable=False, 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( first_ready = DateField(
null=True, null=True,
editable=False, 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): def isActive(self):

View file

@ -175,7 +175,7 @@ class DomainInformation(TimeStampedModel):
blank=True, blank=True,
related_name="submitted_domain_requests_information", related_name="submitted_domain_requests_information",
on_delete=models.PROTECT, 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( purpose = models.TextField(

View file

@ -606,7 +606,7 @@ class DomainRequest(TimeStampedModel):
blank=True, blank=True,
related_name="submitted_domain_requests", related_name="submitted_domain_requests",
on_delete=models.PROTECT, 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( purpose = models.TextField(

View file

@ -27,7 +27,7 @@ class Host(TimeStampedModel):
"registrar.Domain", "registrar.Domain",
on_delete=models.PROTECT, on_delete=models.PROTECT,
related_name="host", # access this Host via the Domain as `domain.host` 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): def __str__(self):

View file

@ -33,6 +33,7 @@ class User(AbstractUser):
default=None, # Set the default value to None default=None, # Set the default value to None
null=True, # Allow the field to be null null=True, # Allow the field to be null
blank=True, # Allow the field to be blank 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( domains = models.ManyToManyField(

View file

@ -9,7 +9,6 @@ class VerifiedByStaff(TimeStampedModel):
email = models.EmailField( email = models.EmailField(
null=False, null=False,
blank=False, blank=False,
help_text="Email",
db_index=True, db_index=True,
) )
@ -19,12 +18,12 @@ class VerifiedByStaff(TimeStampedModel):
blank=True, blank=True,
on_delete=models.SET_NULL, on_delete=models.SET_NULL,
related_name="verifiedby_user", related_name="verifiedby_user",
help_text="Person who verified this user",
) )
notes = models.TextField( notes = models.TextField(
null=False, null=False,
blank=False, blank=False,
help_text="Notes",
) )
class Meta: class Meta:

View file

@ -12,7 +12,7 @@ class Website(TimeStampedModel):
website = models.CharField( website = models.CharField(
max_length=255, max_length=255,
null=False, null=False,
help_text="", help_text="An alternative domain or current website listed on a domain request",
) )
def __str__(self) -> str: def __str__(self) -> str: