【发布时间】:2011-09-17 21:50:02
【问题描述】:
可能重复:
Django: Why create a OneToOne to UserProfile instead of subclassing auth.User?
为什么不推荐使用子类化 auth.User 来获取有关用户 (auth.User) 的其他信息,而是 creating a UserProfile?
【问题讨论】:
标签: django
可能重复:
Django: Why create a OneToOne to UserProfile instead of subclassing auth.User?
为什么不推荐使用子类化 auth.User 来获取有关用户 (auth.User) 的其他信息,而是 creating a UserProfile?
【问题讨论】:
标签: django
我认为这与recommended django way 没有太大区别,因为模型的子类在内部也会通过OneToOneField 连接到父类!
【讨论】: