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 13:44:34 +0100 |
| commit | cc67344db9de0248ba1064f7e986c6b29276a7b1 (patch) | |
| tree | 6161a6f6d7ac41f60344591f75acdd794e7a23e7 /docs/ref | |
| parent | a52bdea5a27ba44b13eda93642231c65c581e083 (diff) | |
Doc'd that action descriptions are %-formatted.
Co-authored-by: JD Bothma <jbothma@gmail.com>
Diffstat (limited to 'docs/ref')
| -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`. |
