def query_string(context, **kwargs):
    """Add param to the given query string"""
    params = context["request"].GET.copy()

    for key, value in list(kwargs.items()):
        params[key] = value

    return "?" + params.urlencode()
def query_string ( context , ** kwargs ) : params = context [ "request" ] . GET . copy ( ) for key , value in list ( kwargs . items ( ) ) : params [ key ] = value return "?" + params . urlencode ( )
Add param to the given query string