功能变化: 初始化系统管理代码优化
							parent
							
								
									dcb96daafb
								
							
						
					
					
						commit
						b80573caad
					
				|  | @ -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: | ||||
|  |  | |||
|  | @ -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, | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 李强
						李强