Codacy warning about constant names
This commit is contained in:
parent
004e76f29e
commit
8a4a4a833f
@ -132,8 +132,8 @@ CAS_FEDERATE = False
|
|||||||
#: Time after witch the cookie use for “remember my identity provider” expire (one week).
|
#: Time after witch the cookie use for “remember my identity provider” expire (one week).
|
||||||
CAS_FEDERATE_REMEMBER_TIMEOUT = 604800
|
CAS_FEDERATE_REMEMBER_TIMEOUT = 604800
|
||||||
|
|
||||||
current_global = globals().copy()
|
GLOBALS = globals().copy()
|
||||||
for name, default_value in current_global.items():
|
for name, default_value in GLOBALS.items():
|
||||||
# get the current setting value, falling back to default_value
|
# get the current setting value, falling back to default_value
|
||||||
value = getattr(settings, name, default_value)
|
value = getattr(settings, name, default_value)
|
||||||
# set the setting value to its value if defined, ellse to the default_value.
|
# set the setting value to its value if defined, ellse to the default_value.
|
||||||
|
Loading…
Reference in New Issue
Block a user