use shortened names for orgs in the choicefield which satisfies the admin requirement, replace short name with a long name in the user facing app in the form, summary page, manage app page

This commit is contained in:
Rachid Mrad 2023-10-12 15:32:10 -04:00
parent 1550fde832
commit 003db40e58
No known key found for this signature in database
GPG key ID: EF38E4CEC4A8F3CF
10 changed files with 171 additions and 20 deletions

View file

@ -153,7 +153,8 @@ class RegistrarFormSet(forms.BaseFormSet):
class OrganizationTypeForm(RegistrarForm):
organization_type = forms.ChoiceField(
choices=DomainApplication.OrganizationChoices.choices,
# use the long names in the application form
choices=DomainApplication.OrganizationChoicesVerbose.choices,
widget=forms.RadioSelect,
error_messages={"required": "Select the type of organization you represent."},
)