功能变化: 初始化系统管理代码优化

pull/57/head
李强 2022-05-16 09:49:06 +08:00
parent dcb96daafb
commit b80573caad
2 changed files with 3 additions and 1 deletions

View File

@ -89,6 +89,7 @@ def refresh_dictionary():
:return:
"""
if is_tenants_mode():
from django_tenants.utils import schema_context
with schema_context(connection.tenant.schema_name):
settings.DICTIONARY_CONFIG[connection.tenant.schema_name] = _get_all_dictionary()
else:
@ -101,6 +102,7 @@ def refresh_system_config():
:return:
"""
if is_tenants_mode():
from django_tenants.utils import schema_context
with schema_context(connection.tenant.schema_name):
settings.SYSTEM_CONFIG[connection.tenant.schema_name] = _get_all_system_config()
else:

View File

@ -2169,7 +2169,7 @@ system_config_data = [
"create_datetime": datetime.datetime.now(),
"title": "登录网站logo",
"key": "site_logo",
"value": "[]",
"value": None,
"sort": 2,
"status": 1,
"data_options": None,