modles.py
from django.contrib.auth.models import AbstractUser class UserInfo(AbstractUser): ...
需要在settings.py中配置
AUTH_USER_MODEL = '应用名.UserInfo'