From 5c10041f4636c3dfe637924ab24da85dd657d790 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Thu, 12 Jan 2023 13:00:18 +0100 Subject: Refs #30127 -- Removed name argument for django.utils.functional.cached_property(). Per deprecation timeline. --- docs/ref/utils.txt | 7 +------ docs/releases/5.0.txt | 3 +++ 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'docs') 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 `, 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. -- cgit v1.3