settings loaders: add all theme details in settings.THEME_INFO (#34025)
This commit is contained in:
parent
7915360e1f
commit
20018fbac8
|
@ -241,6 +241,7 @@ class ThemeSettings(SettingsDictUpdateMixin):
|
||||||
theme = get_theme(theme_id)
|
theme = get_theme(theme_id)
|
||||||
if not theme:
|
if not theme:
|
||||||
return
|
return
|
||||||
|
tenant_settings.THEME_INFO = theme
|
||||||
module_name = os.environ.get('DJANGO_SETTINGS_MODULE', '').split('.')[0]
|
module_name = os.environ.get('DJANGO_SETTINGS_MODULE', '').split('.')[0]
|
||||||
module_settings = theme.get('settings', {}).get(module_name)
|
module_settings = theme.get('settings', {}).get(module_name)
|
||||||
if not module_settings:
|
if not module_settings:
|
||||||
|
|
Loading…
Reference in New Issue