code: def redirect_params(url_name, params=None):
      
      url = reverse(url_name)
      params = urlencode(params if params else {})
      return HttpResponseRedirect(url + "?%s" % params)
docs: Redirect to ``url_name`` with ``params`` as querystring
  
          :param unicode url_name: a URL pattern name
          :param params: Some parameter to append to the reversed URL
          :type params: :obj:`dict` or :obj:`NoneType<types.NoneType>`
          :return: A redirection to the URL with name ``url_name`` with ``params`` as querystring.
          :rtype: django.http.HttpResponseRedirect