Make config values not case-sensitive.
This commit is contained in:
parent
6d8d280248
commit
fa4cc4cab3
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ def get_configvalue(configname):
|
||||||
Retrieve a configuration value.
|
Retrieve a configuration value.
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
return ConfigValue.objects.get(conf_key=configname).conf_value
|
return ConfigValue.objects.get(conf_key__iexact=configname).conf_value
|
||||||
except:
|
except:
|
||||||
functions_general.log_errmsg("Unable to get config value for %s:\n%s" % (configname, (format_exc())))
|
functions_general.log_errmsg("Unable to get config value for %s:\n%s" % (configname, (format_exc())))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue