解决方案:

需要在setting中重载AUTH_USER_MODEL

AUTH_USER_MODEL = ‘users.UserProfile’
users:你的app

UserProfile:model