summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-04-18 09:02:56 -0400
committerTim Graham <timograham@gmail.com>2016-04-18 09:02:56 -0400
commit2c4c67af94318b15df7d9d37b936e07e8168bc73 (patch)
treed6b2727599502d4396f162c4ba2b0f29dc2b387f /docs
parent7ba7d203d8044da923b2b18fa82e59e62e4bf809 (diff)
Fixed #26514 -- Documented that User.refresh_from_db() doesn't clear the permission cache.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/auth/default.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt
index 4c8d44a0cd..45526eb831 100644
--- a/docs/topics/auth/default.txt
+++ b/docs/topics/auth/default.txt
@@ -284,6 +284,7 @@ the ``User`` from the database. For example::
user.has_perm('myapp.change_bar') # False
# Request new instance of User
+ # Be aware that user.refresh_from_db() won't clear the cache.
user = get_object_or_404(User, pk=user_id)
# Permission cache is repopulated from the database