MCPcopy
hub / github.com/django/django / sensitive_post_parameters_wrapper

Function sensitive_post_parameters_wrapper

django/views/decorators/debug.py:115–126  ·  view source on GitHub ↗
(request, *args, **kwargs)

Source from the content-addressed store, hash-verified

113
114 @wraps(view)
115 async def sensitive_post_parameters_wrapper(request, *args, **kwargs):
116 if not isinstance(request, HttpRequest):
117 raise TypeError(
118 "sensitive_post_parameters didn't receive an HttpRequest "
119 "object. If you are decorating a classmethod, make sure to use "
120 "@method_decorator."
121 )
122 if parameters:
123 request.sensitive_post_parameters = parameters
124 else:
125 request.sensitive_post_parameters = "__ALL__"
126 return await view(request, *args, **kwargs)
127
128 else:
129

Callers

nothing calls this directly

Calls 1

viewFunction · 0.85

Tested by

no test coverage detected