mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
provide __init__ arg for LDAP group type
This commit is contained in:
parent
6fcda9c562
commit
2e220beda4
@ -299,7 +299,10 @@ class LDAPGroupTypeField(fields.ChoiceField):
|
||||
data = super(LDAPGroupTypeField, self).to_internal_value(data)
|
||||
if not data:
|
||||
return None
|
||||
return getattr(django_auth_ldap.config, data)()
|
||||
if data.endswith('MemberDNGroupType'):
|
||||
return getattr(django_auth_ldap.config, data)(member_attr='member')
|
||||
else:
|
||||
return getattr(django_auth_ldap.config, data)()
|
||||
|
||||
|
||||
class LDAPUserFlagsField(fields.DictField):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user