summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2012-02-09 18:59:05 +0000
committerJannis Leidel <jannis@leidel.info>2012-02-09 18:59:05 +0000
commit4dbeb4bca4638ff851a2f4844d262dbe1652f7b5 (patch)
tree219211a0fed93719262c6c8aa7c3b03085742824 /docs
parent875a5ea8d47c2c10432572fec788a81217073a4f (diff)
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
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/admin/index.txt14
1 files changed, 12 insertions, 2 deletions
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