Hi, I've got a simple form that acts as a filter to enable users to reach listings in various countries and I've set up a view that either redirects the user to the correct url or in the case of a query present; diverts to a search url that processes via GET. So the problem I'm having is sending multi value list variables to the search feature - I get this:
http://pitchup.queryclick.webfactional.com/activities/search/?q=horse%20riding&location=[u'ireland'] instead of http://pitchup.queryclick.webfactional.com/activities/search/?q=horse%20riding&location=englandscotlandwales In my view I have this: def activities(request): if request.method == 'POST': query_string = request.POST["q"] location_filter = request.POST.getlist("location") activity_filter = request.POST.getlist("activity") if query_string: return HttpResponseRedirect('/activities/search/?q=%s&location=%s' % (query_string, location_filter)) if location_filter == 'all': return HttpResponseRedirect('/activities/') else: return HttpResponseRedirect('/activities/%s/%s' % (location_filter, activity_filter)) else: activity_list = Activity.objects.all().order_by('name') context = { 'activity_list' : activity_list, } return render_to_response('activity/activity_list.html', context, context_instance=RequestContext(request)) Anyone point out where I'm messing things up!? Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---