阅读背景:

如何使用Django中的基于类的通用视图将父id作为fk传递给子对象的ModelForm ?

来源:互联网 

I am trying to use Django Generic Class-Based Views to build a CRUD interface to a two-model database. I have a working CRUD interface to the parent model, and am stuck trying to get the child Create working. For consistency with other Django examples, take the parent to be Author and the child to be Book. What is the simplest way to allow users to add Books to an Author? I am trying to use Django Generic Class-Based V




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

分享到: