summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorJon Janzen <jon@jonjanzen.com>2023-02-10 20:43:26 -0500
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-06-27 11:17:17 +0200
commit5e98959d9242c57a55c65847758781f82d386fa4 (patch)
treee137f31489e3bf6893b79b5fe9984b2368e7682c /docs/ref
parent2360ba22742c3ee8729697bfe2d508110465af56 (diff)
Fixed #34391 -- Added async-compatible interface to auth functions and related methods test clients.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/auth.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/ref/contrib/auth.txt b/docs/ref/contrib/auth.txt
index 61fd74a38f..be4960f1bf 100644
--- a/docs/ref/contrib/auth.txt
+++ b/docs/ref/contrib/auth.txt
@@ -693,6 +693,9 @@ Utility functions
.. currentmodule:: django.contrib.auth
.. function:: get_user(request)
+.. function:: aget_user(request)
+
+ *Asynchronous version*: ``aget_user()``
Returns the user model instance associated with the given ``request``’s
session.
@@ -716,3 +719,7 @@ Utility functions
.. versionchanged:: 4.1.8
Fallback verification with :setting:`SECRET_KEY_FALLBACKS` was added.
+
+ .. versionchanged:: 5.0
+
+ ``aget_user()`` function was added.