AbstractUser属性与UserProfile模型 [英] AbstractUser attributes vs UserProfile Model
本文介绍了AbstractUser属性与UserProfile模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个关于为用户设计模型的问题.如果您这样做是更好的方法吗?创建一个AbstractUser模型,并将所有其他属性(例如:电话,手机,传真)放入模型中 vss 创建一个名为UserProfile的单独模型,并使用OneToOneField将其与Member链接起来?
I have a question regarding designing models for the User. Is it a better approach if you : create an AbstractUser model and put all extra attributes (eg: phone, mobile, fax) inside the model v.s creating a separate model called UserProfile and link it up with the Member using OneToOneField ?
推荐答案
查看全文