diff options
| author | Jon Janzen <jon@jonjanzen.com> | 2023-05-06 20:20:00 -0700 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-06-23 13:29:40 +0200 |
| commit | 38e391e95fe5258bc6d2467332dc9cd44ce6ba52 (patch) | |
| tree | 68f0c84d7968703f213ea3492cdc985ccc993e48 /docs | |
| parent | f8092ee9adafaa052172712349a32bd5889b5ccb (diff) | |
Refs #31949 -- Made @sensitive_variables/sensitive_post_parameters decorators to work with async functions.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/howto/error-reporting.txt | 8 | ||||
| -rw-r--r-- | docs/releases/5.0.txt | 6 |
2 files changed, 13 insertions, 1 deletions
diff --git a/docs/howto/error-reporting.txt b/docs/howto/error-reporting.txt index fd465ecf6b..875e56a51d 100644 --- a/docs/howto/error-reporting.txt +++ b/docs/howto/error-reporting.txt @@ -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 diff --git a/docs/releases/5.0.txt b/docs/releases/5.0.txt index 0184dad12c..588aa23ca1 100644 --- a/docs/releases/5.0.txt +++ b/docs/releases/5.0.txt @@ -241,6 +241,8 @@ Decorators * :func:`~django.views.decorators.cache.cache_control` * :func:`~django.views.decorators.cache.never_cache` * :func:`~django.views.decorators.common.no_append_slash` + * :func:`~django.views.decorators.debug.sensitive_variables` + * :func:`~django.views.decorators.debug.sensitive_post_parameters` * ``xframe_options_deny()`` * ``xframe_options_sameorigin()`` * ``xframe_options_exempt()`` @@ -253,7 +255,9 @@ Email Error Reporting ~~~~~~~~~~~~~~~ -* ... +* :func:`~django.views.decorators.debug.sensitive_variables` and + :func:`~django.views.decorators.debug.sensitive_post_parameters` can now be + used with asynchronous functions. File Storage ~~~~~~~~~~~~ |
