mirror of
https://github.com/django/django.git
synced 2025-08-30 23:37:50 +00:00
Refs #31949 -- Made @sensitive_variables/sensitive_post_parameters decorators to work with async functions.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
This commit is contained in:
parent
f8092ee9ad
commit
38e391e95f
6 changed files with 303 additions and 38 deletions
|
@ -205,6 +205,10 @@ filtered out of error reports in a production environment (that is, where
|
|||
exception reporting, and consider implementing a :ref:`custom filter
|
||||
<custom-error-reports>` if necessary.
|
||||
|
||||
.. versionchanged:: 5.0
|
||||
|
||||
Support for wrapping ``async`` functions was added.
|
||||
|
||||
.. function:: sensitive_post_parameters(*parameters)
|
||||
|
||||
If one of your views receives an :class:`~django.http.HttpRequest` object
|
||||
|
@ -245,6 +249,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
|
||||
|
||||
Support for wrapping ``async`` functions was added.
|
||||
|
||||
.. _custom-error-reports:
|
||||
|
||||
Custom error reports
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue