login() got an unexpected keyword argument 'extra_context'


 环境:xadmin   django2.0  python3.7.4

操作登录login()或者注销logout()报以上错误的解决办法如下:

在xadmin的views/website.py中 

修改如下:

from django.contrib.auth.views import login
from django.contrib.auth.views import logout