diff options
| author | Hasan Ramezani <hasan.r67@gmail.com> | 2021-05-19 23:22:26 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-05-26 10:20:13 +0200 |
| commit | 1143f3bb5ecaa2be58f2cd9077f147040291659d (patch) | |
| tree | fda6fd3bf2876cf1c78a8cab5310a2de22072168 /docs | |
| parent | b46dbd4e3e255223078ae0028934ea986e19ebc1 (diff) | |
Fixed #32543 -- Added search_help_text to ModelAdmin.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 7 | ||||
| -rw-r--r-- | docs/releases/4.0.txt | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index f1c64bea28..99d6d2dcc8 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -1381,6 +1381,13 @@ subclass:: Support for searching against quoted phrases with spaces was added. +.. attribute:: ModelAdmin.search_help_text + + .. versionadded:: 4.0 + + Set ``search_help_text`` to specify a descriptive text for the search box + which will be displayed below it. + .. attribute:: ModelAdmin.show_full_result_count Set ``show_full_result_count`` to control whether the full count of objects diff --git a/docs/releases/4.0.txt b/docs/releases/4.0.txt index 761b47b982..54de681a81 100644 --- a/docs/releases/4.0.txt +++ b/docs/releases/4.0.txt @@ -75,6 +75,9 @@ Minor features * The new context variable ``model`` which contains the model class for each model is added to the :meth:`.AdminSite.each_context` method. +* The new :attr:`.ModelAdmin.search_help_text` attribute allows specifying a + descriptive text for the search box. + :mod:`django.contrib.admindocs` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
