diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-03-09 13:43:17 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-03-09 15:44:40 +0100 |
| commit | 2e57dc490ba582017ce548c7fd90e69b1f63a9df (patch) | |
| tree | 7ceaa536176d2b79f0b3012c8daa2df0ee032de7 | |
| parent | 87a55e0b51771d42bb90087bd9805db983f48fd7 (diff) | |
[4.2.x] Doc'd that action descriptions are %-formatted.
Co-authored-by: JD Bothma <jbothma@gmail.com>
Backport of cc67344db9de0248ba1064f7e986c6b29276a7b1 from main
| -rw-r--r-- | docs/ref/contrib/admin/actions.txt | 5 |
1 files changed, 5 insertions, 0 deletions
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`. |
