Wiadomość napisana w dniu 2008-12-22, o godz. 20:40, przez Matias:

> You can add a hidden input named "next" where you put the value of  
> next in the GET variable.
> Like this
> <form method="post" action="{{ some_action }}" ... >
> ....
> <input type="hidden" name="next" value="{{ request.GET.next }}" />
> ....
> </form>
>
> Or you can change the action variable of the form to include the  
> current GET variables. like this
>
> <form method="post" action="{{ request.get_full_path }}" ... >
> ....
> </form>
>
> If your view that handles GET and POST aren't the same you must add  
> the "next" var in the action field on your own.
>
>
> The latter is the best IMHO.


Thanks. I was hoping there's something that would save me from writing  
actual code. Django makes me too lazy, I have to get my hands dirty  
with Spring again. ;)

-- 
We read Knuth so you don't have to. - Tim Peters

Jarek Zgoda, R&D, Redefine
[email protected]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to