mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-23 11:16:07 +02:00
Fix bug with both org name and suborg
This commit is contained in:
parent
d0aff60db0
commit
b09e0cad4b
1 changed files with 3 additions and 3 deletions
|
@ -152,13 +152,13 @@ class RequestingEntityYesNoForm(BaseYesNoForm):
|
|||
Determines the initial checked state of the form based on the domain_request's attributes.
|
||||
"""
|
||||
|
||||
if (
|
||||
if self.domain_request.is_suborganization():
|
||||
return True
|
||||
elif (
|
||||
self.domain_request.portfolio
|
||||
and self.domain_request.organization_name == self.domain_request.portfolio.organization_name
|
||||
):
|
||||
return False
|
||||
elif self.domain_request.is_suborganization():
|
||||
return True
|
||||
else:
|
||||
return None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue