开发者

using a Django ModelForm doesn't want to work well with a ManyToManyField

开发者 https://www.devze.com 2023-01-13 13:06 出处:网络
I have a ManyToManyField in a model which uses the \'through\' option. Using a Django ModelForm, this seems to be failing giving me a funny error about having to use the model\'s manager.

I have a ManyToManyField in a model which uses the 'through' option. Using a Django ModelForm, this seems to be failing giving me a funny error about having to use the model's manager.

I want to be able to edit this inline (i think the admin lets me do this) and looked up it on google, but everything to use this Django Inline Forms is really messy and I want to be able to keep my code clean and unders开发者_JS百科tandable.

Thanks, Joe


I just got my head around inline forms. The documentation is just silly.

0

精彩评论

暂无评论...
验证码 换一张
取 消