mirror of
https://github.com/django/django.git
synced 2025-04-10 08:19:39 +00:00
[2.1.x] Corrected cached_property() signature in docs.
Backport of 82b9708c6f77d1a4b7b4236234065799370be245 from master
This commit is contained in:
parent
c1ac9c5ea3
commit
abec2ad18d
@ -426,7 +426,7 @@ https://web.archive.org/web/20110718035220/http://diveintomark.org/archives/2004
|
||||
.. module:: django.utils.functional
|
||||
:synopsis: Functional programming tools.
|
||||
|
||||
.. class:: cached_property(object, name)
|
||||
.. class:: cached_property(func, name=None)
|
||||
|
||||
The ``@cached_property`` decorator caches the result of a method with a
|
||||
single ``self`` argument as a property. The cached result will persist
|
||||
|
Loading…
x
Reference in New Issue
Block a user