mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Refs #31949 -- Enabled @sensitive_variables to work with async functions.
This commit is contained in:
parent
6087bc4e15
commit
23cbed2187
5 changed files with 120 additions and 25 deletions
|
@ -194,6 +194,10 @@ filtered out of error reports in a production environment (that is, where
|
|||
def process_info(user):
|
||||
...
|
||||
|
||||
.. versionchanged:: 5.0
|
||||
|
||||
:func:`sensitive_variables` can now be used to wrap ``async`` functions.
|
||||
|
||||
.. function:: sensitive_post_parameters(*parameters)
|
||||
|
||||
If one of your views receives an :class:`~django.http.HttpRequest` object
|
||||
|
@ -234,6 +238,10 @@ filtered out of error reports in a production environment (that is, where
|
|||
``user_change_password`` in the ``auth`` admin) to prevent the leaking of
|
||||
sensitive information such as user passwords.
|
||||
|
||||
.. versionchanged:: 5.0
|
||||
|
||||
:func:`sensitive_post_parameters` can now be used to wrap ``async`` functions.
|
||||
|
||||
.. _custom-error-reports:
|
||||
|
||||
Custom error reports
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue