So when returning HttpResponseRedirect django returns 302 status code
for the client, which indicates that the client browser should
navigate to another url. Then you have at last 2 options:
1) before returning save at session data information about form that
you want to thans form - but it's not very good, because it can work
wrong when same user will be entering 2 different forms at the same
session
2) return address with get parameters inside, and then in thanks
page's view check that get parameters to determine the form from which
the user was redirected

On 6 Sie, 14:33, 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

-- 
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.

Reply via email to