I\'m writing a django application with a URL like \'http://localhost/entity/id/?overlay=other_id\'. Where id is the primary key of the particular entity and overlay is an o
You can use a Django QueryDict object:
from django.http import QueryDict
# from scratch
qdict = QueryDict('',mutable=True)
# starting with our existing query params to pass along
qdict = request.GET.copy()
# put in new values via regular dict
qdict.update({'foo':'bar'})
# put it together
full_url = reversed_url + '?' + qdict.urlencode()
And of course you could write a convenience method for it similar to the previous answer.