阅读背景:

在Django中,如何将ForeignKey传递给Model的实例?

来源:互联网 

I am writing an application which stores "Jobs". They are defined as having a ForeignKey linked to a "User". I don't understand how to pass the ForeignKey into the model when creating it. My Model for Job worked fine without a ForeignKey, but now that I am trying to add users to the system I can't get the form to validate.I am writing an application which stores "Jobs"




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: