def __init__(self, *args, **kwargs):
super(EnterpriseCustomerIdentityProviderAdminForm, self).__init__(*args, **kwargs)<EOL>idp_choices = utils.get_idp_choices()<EOL>help_text = '<STR_LIT>'<EOL>if saml_provider_configuration:<EOL><INDENT>provider_id = self.instance.provider_id<EOL>url = reverse('<STR_LIT>'.format(<EOL>saml_provider_configuration._meta.app_label,<EOL>saml_provider_configuration._meta.model_name))<EOL>if provider_id:<EOL><INDENT>identity_provider = utils.get_identity_provider(provider_id)<EOL>if identity_provider:<EOL><INDENT>update_url = url + '<STR_LIT>'.format(identity_provider.pk)<EOL>help_text = '<STR_LIT>'.format(update_url=update_url, identity_provider=identity_provider.name)<EOL><DEDENT>else:<EOL><INDENT>help_text += '<STR_LIT>'<EOL><DEDENT><DEDENT>else:<EOL><INDENT>help_text += '<STR_LIT>''<STR_LIT>'.format(add_url=url)<EOL><DEDENT><DEDENT>if idp_choices is not None:<EOL><INDENT>self.fields['<STR_LIT>'] = forms.TypedChoiceField(<EOL>choices=idp_choices,<EOL>label=_('<STR_LIT>'),<EOL>help_text=mark_safe(help_text),<EOL>)<EOL><DEDENT>
Initialize the form.

Substitutes CharField with TypedChoiceField for the provider_id field.