Skip to content

Commit 1308293

Browse files
committed
Removed csrf_response_exempt and csrf_view_exempt.
1 parent 2ecf56e commit 1308293

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

django/views/decorators/csrf.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -48,24 +48,6 @@ def process_view(self, request, callback, callback_args, callback_kwargs):
4848
"""
4949

5050

51-
def csrf_response_exempt(view_func):
52-
"""
53-
Modifies a view function so that its response is exempt
54-
from the post-processing of the CSRF middleware.
55-
"""
56-
warnings.warn("csrf_response_exempt is deprecated. It no longer performs a "
57-
"function, and calls to it can be removed.",
58-
DeprecationWarning)
59-
return view_func
60-
61-
def csrf_view_exempt(view_func):
62-
"""
63-
Marks a view function as being exempt from CSRF view protection.
64-
"""
65-
warnings.warn("csrf_view_exempt is deprecated. Use csrf_exempt instead.",
66-
DeprecationWarning)
67-
return csrf_exempt(view_func)
68-
6951
def csrf_exempt(view_func):
7052
"""
7153
Marks a view function as being exempt from the CSRF view protection.

0 commit comments

Comments
 (0)