code: def copy_params(get_or_post_params, ignore=None):
      
      if ignore is None:
          ignore = set()
      params = {}
      for key in get_or_post_params:
          if key not in ignore and get_or_post_params[key]:
              params[key] = get_or_post_params[key]
      return params
docs: copy a :class:`django.http.QueryDict` in a :obj:`dict` ignoring keys in the set ``ignore``
  
          :param django.http.QueryDict get_or_post_params: A GET or POST
              :class:`QueryDict<django.http.QueryDict>`
          :param set ignore: An optinal set of keys to ignore during the copy
          :return: A copy of get_or_post_params
          :rtype: dict