[2.0.x] Corrected cached_property() signature in docs.

Backport of 82b9708c6f from master
This commit is contained in:
Sergey Fedoseev 2018-07-06 17:56:13 +05:00 committed by Tim Graham
parent 1645471348
commit 9dd66ba5d5
1 changed files with 1 additions and 1 deletions

View File

@ -441,7 +441,7 @@ https://web.archive.org/web/20110718035220/http://diveintomark.org/archives/2004
.. module:: django.utils.functional .. module:: django.utils.functional
:synopsis: Functional programming tools. :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 The ``@cached_property`` decorator caches the result of a method with a
single ``self`` argument as a property. The cached result will persist single ``self`` argument as a property. The cached result will persist