def _redirect_with_params(url_name, *args, **kwargs):
 url = urlresolvers.reverse(url_name, args=args)
 params = parse.urlencode(kwargs, True)
 return '{0}?{1}'.format(url, params)

def _redirect_with_params ( url_name , * args , ** kwargs ) : url = urlresolvers . reverse ( url_name , args = args ) params = parse . urlencode ( kwargs , True ) return '{0}?{1}' . format ( url , params )
helper method to create a redirect response with url params .