阅读背景:

向Django表单错误添加错误.__ all__

来源:互联网 

How do I add errors to the top of a form after I cleaned the data? I have an object that needs to make a REST call to an external app (google maps) as a pre-save condition, and this can fail, which means I need my users to correct the data in the form. So I clean the data and then try to save and add to the form errors if the save doesn't work:How do I add errors to the top of a form after




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

分享到: