> 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
jarek...@redefine.pl