summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2023-01-12 13:00:18 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-01-17 11:49:15 +0100
commit5c10041f4636c3dfe637924ab24da85dd657d790 (patch)
tree18d7e7628e60a592bf7f74d11a5db4b3a5676b2d /docs
parente01970e9d23a241473671ea26126f8440db4dead (diff)
Refs #30127 -- Removed name argument for django.utils.functional.cached_property().
Per deprecation timeline.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/utils.txt7
-rw-r--r--docs/releases/5.0.txt3
2 files changed, 4 insertions, 6 deletions
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt
index 2a8a8357fb..c70c374a63 100644
--- a/docs/ref/utils.txt
+++ b/docs/ref/utils.txt
@@ -427,7 +427,7 @@ https://web.archive.org/web/20110718035220/http://diveintomark.org/archives/2004
.. module:: django.utils.functional
:synopsis: Functional programming tools.
-.. class:: cached_property(func, name=None)
+.. class:: cached_property(func)
The ``@cached_property`` decorator caches the result of a method with a
single ``self`` argument as a property. The cached result will persist
@@ -509,11 +509,6 @@ https://web.archive.org/web/20110718035220/http://diveintomark.org/archives/2004
z = person.friends # does not call
x is z # is True
- .. deprecated:: 4.1
-
- The ``name`` parameter is deprecated and will be removed in Django 5.0
- as it's unnecessary as of Python 3.6.
-
.. class:: classproperty(method=None)
Similar to :py:func:`@classmethod <classmethod>`, the ``@classproperty``
diff --git a/docs/releases/5.0.txt b/docs/releases/5.0.txt
index 0a5ab35501..c09973578a 100644
--- a/docs/releases/5.0.txt
+++ b/docs/releases/5.0.txt
@@ -308,3 +308,6 @@ to remove usage of these features.
* The ``SitemapIndexItem.__str__()`` method is removed.
* The ``CSRF_COOKIE_MASKED`` transitional setting is removed.
+
+* The ``name`` argument of ``django.utils.functional.cached_property()`` is
+ removed.