在xadmin后台首页点“添加小组件”
出现报错:“render() got an unexpected keyword argument 'renderer'”
解决办法
extra_apps目录找到xadmin/views/dashboard.py,大概在36行的位置加个参数 renderer=None
# dashboard.py # 36行修改前 def render(self, name, value, attrs=None): # 修改后 def render(self, name, value, attrs=None, renderer=None):
代码:
修改完之后重新刷新页面就可以点进去了