mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-23 19:20:47 +02:00
lint
This commit is contained in:
parent
dc9919d168
commit
560a07f673
1 changed files with 3 additions and 1 deletions
|
@ -144,7 +144,9 @@ class RequestingEntityYesNoForm(BaseYesNoForm):
|
|||
"""Extend the initialization of the form from RegistrarForm __init__"""
|
||||
super().__init__(*args, **kwargs)
|
||||
if self.domain_request.portfolio:
|
||||
choose_text = "(choose from list)" if self.domain_request.portfolio.portfolio_suborganizations.exists() else ""
|
||||
choose_text = (
|
||||
"(choose from list)" if self.domain_request.portfolio.portfolio_suborganizations.exists() else ""
|
||||
)
|
||||
self.form_choices = (
|
||||
(False, self.domain_request.portfolio),
|
||||
(True, f"A suborganization {choose_text}"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue