阅读背景:

如何在CreateView的form_valid方法中引发错误

来源:互联网 

In a Django project, I have a view (cloud), type: CreateView. This view has a inlineformset_factory. It works. But, if i submit the form with a error (look at "messages.error" below), the page is redirected to project.get_absolute_url(). The problem is: the form content back empty. I know thats because the HttpResponseRedirect.In a Django project, I have a view (cloud), typ




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

分享到: