mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Removed obsolete warnings about asgiref.sync adapters with sensitive variables.
Django 5.0+ required asgiref 3.7+, and this warning is obsolete for
asgiref 3.7+ since
be6635e0e7.
This commit is contained in:
@@ -194,17 +194,6 @@ filtered out of error reports in a production environment (that is, where
|
||||
def process_info(user):
|
||||
...
|
||||
|
||||
.. warning::
|
||||
|
||||
Due to the machinery needed to cross the sync/async boundary,
|
||||
:func:`~asgiref.sync.sync_to_async` and
|
||||
:func:`~asgiref.sync.async_to_sync` are **not** compatible with
|
||||
``sensitive_variables()``.
|
||||
|
||||
If using these adapters with sensitive variables, ensure to audit
|
||||
exception reporting, and consider implementing a :ref:`custom filter
|
||||
<custom-error-reports>` if necessary.
|
||||
|
||||
.. versionchanged:: 5.0
|
||||
|
||||
Support for wrapping ``async`` functions was added.
|
||||
|
||||
Reference in New Issue
Block a user