#NEWLINE# @ register . simple_tag #NEWLINE# def dict_as_query_string( dict , prefix = '' ) : #NEWLINE# #INDENT# 'Convert a dictionary to a query string, minus the initial ?' #NEWLINE# return '&' . join ( [ ( '%s%s=%s' % ( prefix , prefix , value ) ) for ( key , value ) in dict . items ( ) ] )