Am Dienstag, 16. Oktober 2007 12:35 schrieb Divan Roulant:
> Hello,
>
> I loose request data when I call a view with reverse from a previous
> view. Here is what I do:
>...     return HttpResponseRedirect(reverse('my_second_view,
> args=(request,)))
> Is request data supposed to follow or is it normal to loose it? Is
> there another way to preserve request data between consecutive views?

Hi,

It is normal that you loose them. This is a HTTP Redirect. The webbrowser
will do a second GET.

You can use from django.utils.http urlencode(request.GET) to build
the new URL.

This will redirect the webbrowser to the new URL with data.

 HTH,
  Thomas

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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