Get setting namespace info from config file
Instead of trying to get it from the Django setting file. Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -75,7 +75,7 @@ class Namespace(object):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_namespaces_config(cls):
|
def get_namespaces_config(cls):
|
||||||
return getattr(settings, SMART_SETTINGS_NAMESPACES_NAME, {})
|
return Setting.get_config_file_content().get(SMART_SETTINGS_NAMESPACES_NAME, {})
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def invalidate_cache_all(cls):
|
def invalidate_cache_all(cls):
|
||||||
|
|||||||
Reference in New Issue
Block a user