mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 09:28:38 -06:00
Fixes PEP8 E401 CI error
This commit is contained in:
parent
8dd6112a4b
commit
498eb50f56
@ -51,7 +51,8 @@ except ImportError:
|
|||||||
# LDAP configuration (optional)
|
# LDAP configuration (optional)
|
||||||
if LDAP_CONFIGURED:
|
if LDAP_CONFIGURED:
|
||||||
try:
|
try:
|
||||||
import ldap, django_auth_ldap
|
import ldap
|
||||||
|
import django_auth_ldap
|
||||||
# Prepend LDAPBackend to the default ModelBackend
|
# Prepend LDAPBackend to the default ModelBackend
|
||||||
AUTHENTICATION_BACKENDS = [
|
AUTHENTICATION_BACKENDS = [
|
||||||
'django_auth_ldap.backend.LDAPBackend',
|
'django_auth_ldap.backend.LDAPBackend',
|
||||||
|
Loading…
Reference in New Issue
Block a user