mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-01 16:53:30 +02:00
Merge pull request #660 from cisagov/jon/524
Fixes #524- Election office now doesnt show up when selected School District
This commit is contained in:
commit
47c365552b
1 changed files with 2 additions and 0 deletions
|
@ -562,11 +562,13 @@ class DomainApplication(TimeStampedModel):
|
|||
"""Show this step if the answer to the first question implies it.
|
||||
|
||||
This shows for answers that aren't "Federal" or "Interstate".
|
||||
This also doesnt show if user selected "School District" as well (#524)
|
||||
"""
|
||||
user_choice = self.organization_type
|
||||
excluded = [
|
||||
DomainApplication.OrganizationChoices.FEDERAL,
|
||||
DomainApplication.OrganizationChoices.INTERSTATE,
|
||||
DomainApplication.OrganizationChoices.SCHOOL_DISTRICT,
|
||||
]
|
||||
return bool(user_choice and user_choice not in excluded)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue