minor changes to content

This commit is contained in:
David Kennedy 2025-01-02 20:34:34 -05:00
parent 0eeee88f1c
commit ce94775879
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
3 changed files with 7 additions and 3 deletions

View file

@ -144,9 +144,10 @@ 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 ""
self.form_choices = (
(False, self.domain_request.portfolio),
(True, "A suborganization (choose from list)"),
(True, f"A suborganization {choose_text}"),
)
self.fields[self.field_name] = self.get_typed_choice_field()