阅读背景:

我能让一个模型知道它的模型形式吗?

来源:互联网 

I have a standard Model and ModelForm set-up. I want to be able to return the ModelForm object from my Model. This involves an impossible circular reference. I thought that since Django allows foreign key models to be expressed as strings, perhaps it's possible to do something similar. At the moment I'm doing this:I have a standard Model and ModelForm set-up. I




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

分享到: