Tribal government question, still needs follow-up 'more information' page

This commit is contained in:
Neil Martinsen-Burrell 2023-01-20 12:34:13 -06:00
parent c0c726e5fa
commit 2c66b3728e
No known key found for this signature in database
GPG key ID: 6A3C818CC10D0184
8 changed files with 138 additions and 1 deletions

View file

@ -289,6 +289,22 @@ class DomainApplication(TimeStampedModel):
help_text="Type of Organization",
)
federally_recognized_tribe = models.BooleanField(
null=True,
help_text="Is the tribe federally recognized",
)
state_recognized_tribe = models.BooleanField(
null=True,
help_text="Is the tribe recognized by a state",
)
tribe_name = models.TextField(
null=True,
blank=True,
help_text="Name of tribe",
)
federal_agency = models.TextField(
null=True,
blank=True,
@ -474,6 +490,11 @@ class DomainApplication(TimeStampedModel):
user_choice = self.organization_type
return user_choice == DomainApplication.OrganizationChoices.FEDERAL
def show_tribal_government(self) -> bool:
"""Show this step if the answer to the first question was "tribal"."""
user_choice = self.organization_type
return user_choice == DomainApplication.OrganizationChoices.TRIBAL
def show_organization_election(self) -> bool:
"""Show this step if the answer to the first question implies it.