mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #34391 -- Added async-compatible interface to auth functions and related methods test clients.
This commit is contained in:
parent
2360ba2274
commit
5e98959d92
10 changed files with 307 additions and 14 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue