Reverse named URL with GET query

def reverse_with_query(named_url,**kwargs):
    "Reverse named URL with GET query"
    q = QueryDict('',mutable=True)
    q.update(kwargs)
    return '{}?{}'.format(reverse(named_url),q.urlencode())