                  name='cable_extra'),
          )
  
  
  site = admin.AdminSite(name="admin")
  site.register(Article, ArticleAdmin)
  site.register(CustomArticle, CustomArticleAdmin)
  site.register(Section, save_as=True, inlines=[ArticleInline])
  site.register(ModelWithStringPrimaryKey)
  site.register(Color)
 
</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 
 </s> add from django.template.loader import get_template
from django.template.context import Context
class CustomTemplateBooleanFieldListFilter(BooleanFieldListFilter):
    template = 'custom_filter_template.html'

class CustomTemplateFilterColorAdmin(admin.ModelAdmin):
    list_filter = (('warm', CustomTemplateBooleanFieldListFilter),)

                  name='cable_extra'),
          )
  
  
class CustomTemplateBooleanFieldListFilter(BooleanFieldListFilter):
    template = 'custom_filter_template.html'

class CustomTemplateFilterColorAdmin(admin.ModelAdmin):
    list_filter = (('warm', CustomTemplateBooleanFieldListFilter),)

  site = admin.AdminSite(name="admin")
  site.register(Article, ArticleAdmin)
  site.register(CustomArticle, CustomArticleAdmin)
  site.register(Section, save_as=True, inlines=[ArticleInline])
  site.register(ModelWithStringPrimaryKey)
  site.register(Color)
keep keep keep add keep 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 
tests/regressiontests/admin_views/admin.py