summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Janzen <jon@jonjanzen.com>2023-06-23 07:15:57 -0700
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-06-23 19:46:55 +0200
commit6523860ca8c7127f850f2fbc24afb6ea63b76949 (patch)
tree282aef013f93e660014c5d44c40c178a310a3588
parent38e391e95fe5258bc6d2467332dc9cd44ce6ba52 (diff)
Refs #31949 -- Simplified @sensitive_variables a bit.
Follow up to 38e391e95fe5258bc6d2467332dc9cd44ce6ba52.
-rw-r--r--django/views/decorators/debug.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/django/views/decorators/debug.py b/django/views/decorators/debug.py
index 2d5d1ebd83..7ea8a540de 100644
--- a/django/views/decorators/debug.py
+++ b/django/views/decorators/debug.py
@@ -39,10 +39,7 @@ def sensitive_variables(*variables):
def decorator(func):
if iscoroutinefunction(func):
-
- @wraps(func)
- async def sensitive_variables_wrapper(*func_args, **func_kwargs):
- return await func(*func_args, **func_kwargs)
+ sensitive_variables_wrapper = func
wrapped_func = func
while getattr(wrapped_func, "__wrapped__", None) is not None: