@register.inclusion_tag('filebrowser/include/_response.html', takes_context=True)
def query_string(context, add=None, remove=None):
 add = string_to_dict(add)
 remove = string_to_list(remove)
 params = context['query'].copy()
 response = get_query_string(params, add, remove)
 return {'response': response}

@ register . inclusion_tag ( 'filebrowser/include/_response.html' , takes_context = True ) def query_string ( context , add = None , remove = None ) : add = string_to_dict ( add ) remove = string_to_list ( remove ) params = context [ 'query' ] . copy ( ) response = get_query_string ( params , add , remove ) return { 'response' : response }
allows the addition and removal of query string parameters .