zacharyvoase/urlobject — pull request #10 by jonasvp (2012-08-21 13:56:40+00:00)
Title: Allow multiple values for dicts in add_param

We're using django-spurl and it's really easy to pass in query=request.GET. This breaks in newer Django versions, however, since request.GET is a MultiValueDict. I tried fixing this issue in django-spurl but that ended up being the wrong place.

This patch allows passing a dictionary with multiple values to add_param() and have it do the right thing:

``QueryString().add_param({'q': ['1', '2']})`` results in ``q=1&q=2``

I hope this patch is useful. If not, do let me know.

Jonas