Konstantin Sushenko
unread,Aug 15, 2011, 12:25:39 AM8/15/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
hello,
I store request.GET in session:
request.session['query_string'] = request.GET
then I retrieve the value in another page and try to urlencode the
QueryDict:
context['query_string'] = request.session['query_string'].urlencode()
in my context I get the python's string representation of the
QueryDict object instead of the expected key0=value0&key1=value1&...
string.
If, instead of QueryDict, I store the urlencoded string in the
session, everything works of course:
request.session['query_string'] = request.GET.urlencode()
a bug?
thanks
konstantin