This commit is contained in:
David Kennedy 2025-01-02 20:38:11 -05:00
parent dc9919d168
commit 560a07f673
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B

View file

@ -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}"),