From 1143f3bb5ecaa2be58f2cd9077f147040291659d Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Wed, 19 May 2021 23:22:26 +0200 Subject: Fixed #32543 -- Added search_help_text to ModelAdmin. --- docs/ref/contrib/admin/index.txt | 7 +++++++ docs/releases/4.0.txt | 3 +++ 2 files changed, 10 insertions(+) (limited to 'docs') 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` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- cgit v1.3