阅读背景:

Django:如何针对另一个相关表单验证inlineformset

来源:互联网 

I have looked around quite a bit but can't quite figure out how to make this work. I basically have a Document form and an Item inlineformset in a view, and I need to perform some validation dependent on the field values in each form. For example, if the Item's copyright_needed field is YES then the Document's account field is required. I have looked around quite a bit but can't quit




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

分享到: