diff options
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 14 |
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 |
