0001-idp_saml2-make-list-of-an-iterator-43038.patch
src/authentic2/saml/admin.py | ||
---|---|---|
118 | 118 |
def __init__(self, *args, **kwargs): |
119 | 119 |
service = kwargs.pop('service', None) |
120 | 120 |
super(SAMLAttributeInlineForm, self).__init__(*args, **kwargs) |
121 |
choices = get_service_attributes(service)
|
|
121 |
choices = list(get_service_attributes(service))
|
|
122 | 122 |
choices += [('edupersontargetedid', 'eduPersonTargetedId')] |
123 | 123 |
self.fields['attribute_name'].choices = choices |
124 | 124 |
self.fields['attribute_name'].widget = forms.Select(choices=choices) |
125 |
- |