1
0
mirror of https://github.com/django/django.git synced 2024-12-26 11:06:07 +00:00

[4.2.x] Doc'd that action descriptions are %-formatted.

Co-authored-by: JD Bothma <jbothma@gmail.com>

Backport of cc67344db9 from main
This commit is contained in:
Mariusz Felisiak 2023-03-09 13:43:17 +01:00
parent 87a55e0b51
commit 2e57dc490b

View File

@ -466,3 +466,8 @@ The ``action`` decorator
queryset.update(is_active=False) queryset.update(is_active=False)
In this case it will add no attributes to the function. 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`.