from xadmin.plugins.utils import get_context_dict
def block_top_toolbar(self, context, nodes):
context = get_context_dict(context or {}) # 用此方法来转换
nodes.append(loader.render_to_string('xadmin/excel/model_list.top_toolbar.import.html',context=context))
博客围绕xadmin导入Excel时出现的报错展开,报错信息为TypeError: render_string_string() got an unexpected keyword argument 'context_instance',反映了在使用xadmin进行Excel导入操作时遇到的技术问题。
1216

被折叠的 条评论
为什么被折叠?



