summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorSiburg <jelle.sjoerdsma@gmail.com>2020-11-23 17:37:53 +1300
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-09-08 13:20:13 +0200
commit46c8df640cfed5dd525ac1bcf5ad7e57b7ff2571 (patch)
tree362b3b8a9662944f6b1651955a7100bf86e95d3c /docs/ref
parent1bd6a7a0acc11e249fca11c017505ad39f15ebf6 (diff)
Fixed #32219 -- Made InlineModelAdmin.verbose_name_plural fallback to its verbose_name.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/admin/index.txt14
1 files changed, 10 insertions, 4 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
index fc1eab44f1..e787349d5f 100644
--- a/docs/ref/contrib/admin/index.txt
+++ b/docs/ref/contrib/admin/index.txt
@@ -2453,13 +2453,19 @@ The ``InlineModelAdmin`` class adds or customizes:
.. attribute:: InlineModelAdmin.verbose_name
- An override to the ``verbose_name`` found in the model's inner ``Meta``
- class.
+ An override to the :attr:`~django.db.models.Options.verbose_name` from the
+ model's inner ``Meta`` class.
.. attribute:: InlineModelAdmin.verbose_name_plural
- An override to the ``verbose_name_plural`` found in the model's inner
- ``Meta`` class.
+ An override to the :attr:`~django.db.models.Options.verbose_name_plural`
+ from the model's inner ``Meta`` class. If this isn't given and the
+ :attr:`.InlineModelAdmin.verbose_name` is defined, Django will use
+ :attr:`.InlineModelAdmin.verbose_name` + ``'s'``.
+
+ .. versionchanged:: 4.0
+
+ The fallback to :attr:`.InlineModelAdmin.verbose_name` was added.
.. attribute:: InlineModelAdmin.can_delete