From 2e57dc490ba582017ce548c7fd90e69b1f63a9df Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Thu, 9 Mar 2023 13:43:17 +0100 Subject: [PATCH] [4.2.x] Doc'd that action descriptions are %-formatted. Co-authored-by: JD Bothma Backport of cc67344db9de0248ba1064f7e986c6b29276a7b1 from main --- docs/ref/contrib/admin/actions.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/ref/contrib/admin/actions.txt b/docs/ref/contrib/admin/actions.txt index 37c5be7ace..f5f91982c1 100644 --- a/docs/ref/contrib/admin/actions.txt +++ b/docs/ref/contrib/admin/actions.txt @@ -466,3 +466,8 @@ The ``action`` decorator queryset.update(is_active=False) In this case it will add no attributes to the function. + + Action descriptions are %-formatted and may contain ``'%(verbose_name)s'`` + and ``'%(verbose_name_plural)s'`` placeholders, which are replaced, + respectively, by the model's :attr:`~django.db.models.Options.verbose_name` + and :attr:`~django.db.models.Options.verbose_name_plural`.