From 4dbeb4bca4638ff851a2f4844d262dbe1652f7b5 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Thu, 9 Feb 2012 18:59:05 +0000 Subject: 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 --- docs/ref/contrib/admin/index.txt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 76ea7804ab..c40ce89204 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -697,8 +697,18 @@ subclass:: .. note:: - The ``FieldListFilter`` API is currently considered internal - and prone to refactoring. + 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. .. attribute:: ModelAdmin.list_max_show_all -- cgit v1.3