mirror of https://github.com/django/django.git
[2.2.x] Refs #29478 -- Clarified cached_property 2.2 release note.
Backport of 3b64e2b775
from master.
This commit is contained in:
parent
28a6046b54
commit
c3655b1528
|
@ -345,9 +345,9 @@ In usage like::
|
||||||
|
|
||||||
alias = base
|
alias = base
|
||||||
|
|
||||||
``alias`` is not cached. Such usage now raises ``TypeError: Cannot assign the
|
``alias`` is not cached. Where the problem can be detected (Python 3.6 and
|
||||||
same cached_property to two different names ('base' and 'alias').`` on Python
|
later), such usage now raises ``TypeError: Cannot assign the same
|
||||||
3.6 and later.
|
cached_property to two different names ('base' and 'alias').``
|
||||||
|
|
||||||
Use this instead::
|
Use this instead::
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue