Unrecognized tribal government more explanation

This commit is contained in:
Neil Martinsen-Burrell 2023-01-24 10:19:52 -06:00
parent 2c66b3728e
commit 2cd53dc4c8
No known key found for this signature in database
GPG key ID: 6A3C818CC10D0184
6 changed files with 148 additions and 6 deletions

View file

@ -495,6 +495,17 @@ class DomainApplication(TimeStampedModel):
user_choice = self.organization_type
return user_choice == DomainApplication.OrganizationChoices.TRIBAL
def show_tribal_explanation(self) -> bool:
"""Show this step if the tribe is not federally or state recognized."""
user_choice = self.organization_type
if (user_choice == DomainApplication.OrganizationChoices.TRIBAL):
# did answer tribal, check the recognition answers
if self.federally_recognized_tribe is not None and self.state_recognized_tribe is not None:
# have answered these questions
if not self.federally_recognized_tribe and not self.state_recognized_tribe:
return True
return False
def show_organization_election(self) -> bool:
"""Show this step if the answer to the first question implies it.