mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 18:09:25 +02:00
Updated Anything Else page to Additional Details page
This commit is contained in:
parent
6d13614521
commit
8f27aa1010
10 changed files with 314 additions and 71 deletions
|
@ -566,6 +566,12 @@ class DomainRequest(TimeStampedModel):
|
|||
help_text="Anything else?",
|
||||
)
|
||||
|
||||
cisa_representative_email = models.EmailField(
|
||||
null=True,
|
||||
blank=True,
|
||||
db_index=True,
|
||||
)
|
||||
|
||||
is_policy_acknowledged = models.BooleanField(
|
||||
null=True,
|
||||
blank=True,
|
||||
|
@ -923,6 +929,14 @@ class DomainRequest(TimeStampedModel):
|
|||
def has_other_contacts(self) -> bool:
|
||||
"""Does this domain request have other contacts listed?"""
|
||||
return self.other_contacts.exists()
|
||||
|
||||
def has_anything_else_text(self) -> bool:
|
||||
"""Does this domain request have an 'anything else?' entry"""
|
||||
return self.anything_else != "" and self.anything_else != None #TODO-NL: how to handle falsy strings again?
|
||||
|
||||
def has_cisa_representative(self) -> bool:
|
||||
"""Does this domain request have cisa representative?"""
|
||||
return self.cisa_representative_email != "" and self.cisa_representative_email != None
|
||||
|
||||
def is_federal(self) -> Union[bool, None]:
|
||||
"""Is this domain request for a federal agency?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue