summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-08-12 18:49:21 -0400
committerGitHub <noreply@github.com>2016-08-12 18:49:21 -0400
commit9556005425ca3d1c8c2a0e8b48e228e63a0bdd32 (patch)
tree306023f0de61260426d0ede5b2d6d34a07b5153f /docs
parent6e07ec3f655073bebdf1b1dfd2303e91202e14e1 (diff)
Fixed #27048 -- Documented that refresh_from_db() doesn't reload @cached_properties.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/models/instances.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/ref/models/instances.txt b/docs/ref/models/instances.txt
index f0decc28d8..514b470b15 100644
--- a/docs/ref/models/instances.txt
+++ b/docs/ref/models/instances.txt
@@ -155,8 +155,10 @@ following is done:
be thrown away, and when next accessed it will be reloaded with the value of
``obj.author_id``.
-Note that only fields of the model are reloaded from the database. Other
-database dependent values such as annotations are not reloaded.
+Only fields of the model are reloaded from the database. Other
+database-dependent values such as annotations aren't reloaded. Any
+:func:`@cached_property <django.utils.functional.cached_property>` attributes
+aren't cleared either.
The reloading happens from the database the instance was loaded from, or from
the default database if the instance wasn't loaded from the database. The