阅读背景:

Django表单有两个提交按钮。 。 。一个需要字段,一个不需要

来源:互联网 

I think this should be a fairly straightforward question . . . I have ONE Django form with TWO different submit buttons. The first submit button is just for SAVING to the database whatever values are typed in to the form fields (so the user can come back and finish the form later if they want). I want the form fields to NOT be required when this first submit button is clicked. When the user clicks the second submit button, though, all fields should be required. Is there a way to do this? Or do I just have to duplicate the form once for each submit button?I think this should be a fairly straightforward




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

分享到: