handled form initialization

This commit is contained in:
David Kennedy 2024-01-04 06:36:20 -05:00
parent 98ad54bb01
commit 2e737bf4d8
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
3 changed files with 26 additions and 12 deletions

View file

@ -831,9 +831,9 @@ class DomainApplication(TimeStampedModel):
DomainApplication.OrganizationChoices.INTERSTATE,
]
def show_no_other_contacts_rationale(self) -> bool:
"""Show this step if the other contacts are blank."""
return not self.other_contacts.exists()
def has_rationale(self) -> bool:
"""Does this application have no_other_contacts_rationale"""
return bool(self.no_other_contacts_rationale)
def has_other_contacts(self) -> bool:
"""Does this application have other contacts listed?"""