在Django中,user的默认属性:username password email first_name last_name
我想删除email,first_name,last_name并将其替换为company
那可能吗 ?有人可以告诉我使用这3个修改过的属性执行身份验证会话的过程: - company - username - password
谢谢 .
如果您想创建自己的模型,您应该阅读Django中有关customizing authentication的文档,尤其是关于User model substitution的部分 .
1 回答
如果您想创建自己的模型,您应该阅读Django中有关customizing authentication的文档,尤其是关于User model substitution的部分 .