      }
  
  @register.inclusion_tag('admin/filter.html')
  def admin_list_filter(cl, spec):
      return {'title': spec.title, 'choices' : list(spec.choices(cl))}
  
  @register.inclusion_tag('admin/actions.html', takes_context=True)
  def admin_actions(context):
      """
      Track the number of times the action field has been rendered on the page,
 
</s> remove @register.inclusion_tag('admin/filter.html')
 </s> add @register.simple_tag </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.
    tpl = get_template(spec.template)
    return tpl.render(Context({
        'title': spec.title,
        'choices' : list(spec.choices(cl)),
        'spec': spec,
    }))
      }
  
  @register.inclusion_tag('admin/filter.html')
  def admin_list_filter(cl, spec):
    tpl = get_template(spec.template)
    return tpl.render(Context({
        'title': spec.title,
        'choices' : list(spec.choices(cl)),
        'spec': spec,
    }))
  
  @register.inclusion_tag('admin/actions.html', takes_context=True)
  def admin_actions(context):
      """
      Track the number of times the action field has been rendered on the page,
keep keep keep keep replace 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/templatetags/admin_list.py