Django AttributeError: type object ‘User’ has no attribute ‘objects’

Django AttributeError: type object ‘User’ has no attribute ‘objects’

重写 user 模型,运行出错,提示 AttributeError: type object ‘User’ has no attribute ‘objects’ 仔细检查了一下,我的 user 模型所在的 models.py 文件内的 objects = UserManager() objects 写掉了一……