diff options
author | Thomas Backlund <tmb@mageia.org> | 2015-10-20 00:24:20 +0300 |
---|---|---|
committer | Thomas Backlund <tmb@mageia.org> | 2015-10-20 00:24:20 +0300 |
commit | 544b4fe3761088699ebad6a493b3b3c91cc72ea1 (patch) | |
tree | ba65938087b82a9f015fcd45b96a3d0772266b15 /modules/django_application/files/custom_backend.py | |
parent | 6c2a31c7d305bbf436dfb283e1bf619a9fc0f3ac (diff) | |
download | puppet-544b4fe3761088699ebad6a493b3b3c91cc72ea1.tar puppet-544b4fe3761088699ebad6a493b3b3c91cc72ea1.tar.gz puppet-544b4fe3761088699ebad6a493b3b3c91cc72ea1.tar.bz2 puppet-544b4fe3761088699ebad6a493b3b3c91cc72ea1.tar.xz puppet-544b4fe3761088699ebad6a493b3b3c91cc72ea1.zip |
lint fixes for django_application
Diffstat (limited to 'modules/django_application/files/custom_backend.py')
-rw-r--r-- | modules/django_application/files/custom_backend.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/django_application/files/custom_backend.py b/modules/django_application/files/custom_backend.py index 828744fb..5ab35385 100644 --- a/modules/django_application/files/custom_backend.py +++ b/modules/django_application/files/custom_backend.py @@ -1,9 +1,7 @@ -from django_auth_ldap.backend import LDAPBackend,_LDAPUser +from django_auth_ldap.backend import LDAPBackend,_LDAPUser class ForceUidLDAPBackend(LDAPBackend): def ldap_to_django_username(self, username): # force uid if someone give a email return _LDAPUser(self, username=username).attrs['uid'][0] - - |