Django1.9重写用户模型报错has no attribute 'USERNAME_FIELD'

转自:https://blog.csdn.net/xiazichenxi/article/details/80443460 Django2.2 Python3.7 在重写用户模型时报错:AttributeError: type object ‘UserProfile’ has no attribute ‘USERNAME_FIELD’ models.py 新建用户模型UserProfile继承自A
相关文章
相关标签/搜索