models中导入from django.contrib.auth.models import AbstractUser
setting中设置 AUTH_USER_MODEL = "app名称.UserInfo"否则会报错