From 068b2c072b0d28cbd5ea63811779629cdaad8638 Mon Sep 17 00:00:00 2001 From: mgaligniana Date: Wed, 15 Dec 2021 01:15:41 -0300 Subject: Fixed #30127 -- Deprecated name argument of cached_property(). --- docs/internals/deprecation.txt | 3 +++ docs/ref/utils.txt | 5 +++++ docs/releases/4.1.txt | 3 +++ 3 files changed, 11 insertions(+) (limited to 'docs') diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index 7ee87d448a..3a3abfeb42 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -69,6 +69,9 @@ details on these changes. * The ``CSRF_COOKIE_MASKED`` transitional setting will be removed. +* The ``name`` argument of ``django.utils.functional.cached_property()`` will + be removed. + .. _deprecation-removed-in-4.1: 4.1 diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index 0b68411e27..39c8e341ad 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -508,6 +508,11 @@ 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/4.1.txt b/docs/releases/4.1.txt index ee21c63a38..f2a168db40 100644 --- a/docs/releases/4.1.txt +++ b/docs/releases/4.1.txt @@ -346,6 +346,9 @@ Miscellaneous * ``CSRF_COOKIE_MASKED`` transitional setting is deprecated. +* The ``name`` argument of :func:`django.utils.functional.cached_property` is + deprecated as it's unnecessary as of Python 3.6. + Features removed in 4.1 ======================= -- cgit v1.3