阅读背景:

Django ModelForms:尝试使用外键ID保存表单

来源:互联网 

I'm trying to create a new Topic and the category id is dynamically determined in javascript on the client side. The problem i'm having is I pass the category id and I want to lookup the correct category object, but using a model form, it checks if the category is an instance of Category before I can assign it and save it.I'm trying to create a new Topic and the catego




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

分享到: