mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-10 06:24:45 +02:00
Simplify None/False logic
Co-authored-by: Seamus Johnston <seamus.johnston@gsa.gov>
This commit is contained in:
parent
e9b678e879
commit
e086fcd9a2
1 changed files with 4 additions and 11 deletions
|
@ -500,17 +500,10 @@ class DomainApplication(TimeStampedModel):
|
||||||
user_choice = self.organization_type
|
user_choice = self.organization_type
|
||||||
if user_choice == DomainApplication.OrganizationChoices.TRIBAL:
|
if user_choice == DomainApplication.OrganizationChoices.TRIBAL:
|
||||||
# did answer tribal, check the recognition answers
|
# did answer tribal, check the recognition answers
|
||||||
if (
|
return (
|
||||||
self.federally_recognized_tribe is not None
|
self.federally_recognized_tribe == False
|
||||||
and self.state_recognized_tribe is not None
|
and self.state_recognized_tribe == False
|
||||||
):
|
)
|
||||||
# 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:
|
def show_organization_election(self) -> bool:
|
||||||
"""Show this step if the answer to the first question implies it.
|
"""Show this step if the answer to the first question implies it.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue