阅读背景:

django表单排除了init中的字段,而不是元类中的字段

来源:互联网 

I want to exclude certain fields in the init function of a modelform depending on a parameter passed in, how do I do this? I know I can add exclude fields using the meta class of a model form but I need this to be dynamic depending on the variable passed in.I want to exclude certain fields in the init fu




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

分享到: