阅读背景:

在django表单提交后,使用新创建的pk重定向到页面

来源:互联网 

I am trying to redirect the user to edit details of a task after task submission, but am having troubles redirecting to a page based on the newly created pk. Each view works without the return HttpResponseRedirect line. I have also tried arge=(instance.id) and kwargs=(instance.id) for the variable.I am trying to redirect the user to edit detail




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

分享到: