  
  class ListFilter(object):
      title = None  # Human-readable title to appear in the right sidebar.
  
      def __init__(self, request, params, model, model_admin):
          # This dictionary will eventually contain the request's query string
          # parameters actually used by this filter.
          self.used_parameters = {}
 
</s> remove           The ``FieldListFilter`` API is currently considered internal
          and prone to refactoring.
 </s> add         The ``FieldListFilter`` API is currently considered internal and prone
        to refactoring.

    .. versionadded:: 1.4

    It is possible to specify a custom template for rendering a list filter::

        class FilterWithCustomTemplate(SimpleListFilter):
            template = "custom_template.html"

    See the default template provided by django (``admin/filter.html``) for
    a concrete example. </s> remove     return {'title': spec.title, 'choices' : list(spec.choices(cl))}
 </s> add     tpl = get_template(spec.template)
    return tpl.render(Context({
        'title': spec.title,
        'choices' : list(spec.choices(cl)),
        'spec': spec,
    }))
    template = 'admin/filter.html'
  
  class ListFilter(object):
      title = None  # Human-readable title to appear in the right sidebar.
    template = 'admin/filter.html'
  
      def __init__(self, request, params, model, model_admin):
          # This dictionary will eventually contain the request's query string
          # parameters actually used by this filter.
          self.used_parameters = {}
keep keep add keep keep keep keep keep
 Fixed #17515 -- Added ability to override the template of custom admin FilterSpec classes. Thanks, saxix and Julien Phalip.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17483 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/contrib/admin/filters.py