1
0
mirror of https://github.com/django/django.git synced 2025-10-26 23:26:08 +00:00

Refs #30127 -- Removed name argument for django.utils.functional.cached_property().

Per deprecation timeline.
This commit is contained in:
Mariusz Felisiak
2023-01-12 13:00:18 +01:00
parent af29139a55
commit 6eb714d21c
4 changed files with 5 additions and 43 deletions

View File

@@ -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``