GET parameter and fragment identifier for reverse and url template tag
Would you be interested in an addition to reverse and {% url %} which provides the ability to add urlencoded GET parameters and fragment identifier?
def reverse(viewname, urlconf=None, args=None, kwargs=None, prefix=None, current_app=None, query=None, fragment=None):
base_url = django.reverse(viewname, urlconf, args, kwargs, prefix, current_app)
query = '?' + urllib.urlencode(query) if query else ''
fragment = '#' + urllib.quote(fragment) if fragment else ''
return base_url + query + fragment
Seems like a duplicate of #25582. The actual solution is still under discussion.