This commit is contained in:
David Kennedy 2025-01-17 17:42:00 -05:00
parent ba2788014b
commit 463632baf7
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B

View file

@ -72,10 +72,9 @@ class RequestingEntityForm(RegistrarForm):
self.fields["sub_organization"].queryset = queryset
# Modify the choices to include "other" so that form can display options properly
self.fields["sub_organization"].choices = (
[(obj.id, str(obj)) for obj in queryset]
+ [("other", "Other (enter your suborganization manually)")]
)
self.fields["sub_organization"].choices = [(obj.id, str(obj)) for obj in queryset] + [
("other", "Other (enter your suborganization manually)")
]
@classmethod
def from_database(cls, obj: DomainRequest | Contact | None):