idp_saml2: make list of an iterator (#43038)
This commit is contained in:
parent
6a5fe2af0b
commit
484ed13a1e
|
@ -118,7 +118,7 @@ class SAMLAttributeInlineForm(forms.ModelForm):
|
|||
def __init__(self, *args, **kwargs):
|
||||
service = kwargs.pop('service', None)
|
||||
super(SAMLAttributeInlineForm, self).__init__(*args, **kwargs)
|
||||
choices = get_service_attributes(service)
|
||||
choices = list(get_service_attributes(service))
|
||||
choices += [('edupersontargetedid', 'eduPersonTargetedId')]
|
||||
self.fields['attribute_name'].choices = choices
|
||||
self.fields['attribute_name'].widget = forms.Select(choices=choices)
|
||||
|
|
Loading…
Reference in New Issue