def query_helper(query, add=None, remove=None):
 add = string_to_dict(add)
 remove = string_to_list(remove)
 params = query.copy()
 return get_query_string(params, add, remove)

def query_helper ( query , add = None , remove = None ) : add = string_to_dict ( add ) remove = string_to_list ( remove ) params = query . copy ( ) return get_query_string ( params , add , remove )
helper function for use within views .