Daniel, I think it can work incorrectly when user would be filling more than one form of the same type at the same time. My suggestion is to use passing get parameters while returning HttpResponseRedirect. It of course have disadvantage that the address would not be always same (get params will be different for different types of forms) but it won't cause problems described above.
On 6 Sie, 15:20, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Aug 6, 1:33 pm, bagheera <neost...@go2.pl> wrote: > > > I have two pages with two different forms. Each, if validated, redirects > > to "thanks" page. I want to customize this behavior, so "thanks" page > > should display different message, regarding witch form was invoked, or > > redirects to "/' if no redirection took place (like user typed in browser > > "test.com/thanks") > > Unfortunately, HttpResponseRedirect takes only one argument. How can i > > pass right message anyway? Or mb there is some workaround, like i could > > check in "thanks" view, from what page it was redirected? > > > -- > > Linux user > > Store something in the session when you validate the form before > redirecting. > -- > DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.