mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 17:26:10 -06:00
Tweak list casting
This commit is contained in:
parent
a20d486fd8
commit
7de8290402
@ -396,11 +396,12 @@ TEMPLATES = [
|
||||
]
|
||||
|
||||
# Set up authentication backends
|
||||
if isinstance(REMOTE_AUTH_BACKEND, list) or isinstance(REMOTE_AUTH_BACKEND, tuple):
|
||||
AUTHENTICATION_BACKENDS = [x for x in REMOTE_AUTH_BACKEND]
|
||||
else:
|
||||
AUTHENTICATION_BACKENDS = [REMOTE_AUTH_BACKEND]
|
||||
AUTHENTICATION_BACKENDS.append('netbox.authentication.ObjectPermissionBackend')
|
||||
if type(REMOTE_AUTH_BACKEND) not in (list, tuple):
|
||||
REMOTE_AUTH_BACKEND = [REMOTE_AUTH_BACKEND]
|
||||
AUTHENTICATION_BACKENDS = [
|
||||
*REMOTE_AUTH_BACKEND,
|
||||
'netbox.authentication.ObjectPermissionBackend',
|
||||
]
|
||||
|
||||
# Time zones
|
||||
USE_TZ = True
|
||||
|
Loading…
Reference in New Issue
Block a user