【发布时间】:2012-04-20 22:41:32
【问题描述】:
我正在通过以下方式使用模型:
class UserProfile:
# Some Stuff
class CompanyProfile(UserProfile):
# Some more stuff
class CandidateProfile(UserProfile):
# Even more stuff
mean CompanyProfile 和 CandidateProfile 继承自 UserProfile 。我将如何从注册表和另一个配置文件中填充这些 CompanyProfile 和 CandidateProfile?我将如何告诉它我正在创建用户或输入数据的配置文件?
【问题讨论】:
-
你有想过这个吗?
-
@Adam 是的,这个问题比较老,现在已经弄清楚了,几个小时后会在这里发布答案
标签: django django-models django-users django-profiles