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