Fix linting

This commit is contained in:
Neil Martinsen-Burrell 2023-01-25 11:55:46 -06:00
parent cc510138cb
commit 0c318e0eea
No known key found for this signature in database
GPG key ID: 6A3C818CC10D0184
3 changed files with 19 additions and 10 deletions

View file

@ -498,11 +498,17 @@ class DomainApplication(TimeStampedModel):
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):
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:
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:
if (
not self.federally_recognized_tribe
and not self.state_recognized_tribe
):
return True
return False