Alfonso schrieb:
> Thanks Alex,
>
> I tried that but no joy - the problem is I just can't get django to
> nicely capture the list's values - it's really stumped me!
>
> location_filter = request.POST.getlist("location")  does give me a
> python list of location variables. But I can't get this resultant
> [u'ireland', u'nireland'] list to become iterable where I can just
> drop the values into a HttpResponseRedirect url like /ireland-
> nireland/
>
> I think I am approaching this incorrectly - If I try request.POST
> ["location"]  It all works but only with the last item in the
> QueryDict.
>   
Hi,

I would send the list as GET data:
   http:/..../?location=a&location=b....
Then you can use this URL for a redirect, too.

You can use urlencode:

from django.utils.http import urlencode

to create the string after the question mark.

BTW, I think urlencode has a bug:
     http://code.djangoproject.com/ticket/9089

  Thomas


-- 
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de


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