功能变化: 初始化系统管理代码优化
parent
dcb96daafb
commit
b80573caad
|
@ -89,6 +89,7 @@ def refresh_dictionary():
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
if is_tenants_mode():
|
if is_tenants_mode():
|
||||||
|
from django_tenants.utils import schema_context
|
||||||
with schema_context(connection.tenant.schema_name):
|
with schema_context(connection.tenant.schema_name):
|
||||||
settings.DICTIONARY_CONFIG[connection.tenant.schema_name] = _get_all_dictionary()
|
settings.DICTIONARY_CONFIG[connection.tenant.schema_name] = _get_all_dictionary()
|
||||||
else:
|
else:
|
||||||
|
@ -101,6 +102,7 @@ def refresh_system_config():
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
if is_tenants_mode():
|
if is_tenants_mode():
|
||||||
|
from django_tenants.utils import schema_context
|
||||||
with schema_context(connection.tenant.schema_name):
|
with schema_context(connection.tenant.schema_name):
|
||||||
settings.SYSTEM_CONFIG[connection.tenant.schema_name] = _get_all_system_config()
|
settings.SYSTEM_CONFIG[connection.tenant.schema_name] = _get_all_system_config()
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -2169,7 +2169,7 @@ system_config_data = [
|
||||||
"create_datetime": datetime.datetime.now(),
|
"create_datetime": datetime.datetime.now(),
|
||||||
"title": "登录网站logo",
|
"title": "登录网站logo",
|
||||||
"key": "site_logo",
|
"key": "site_logo",
|
||||||
"value": "[]",
|
"value": None,
|
||||||
"sort": 2,
|
"sort": 2,
|
||||||
"status": 1,
|
"status": 1,
|
||||||
"data_options": None,
|
"data_options": None,
|
||||||
|
|
Loading…
Reference in New Issue