Skip to content

Commit

Permalink
Removed csrf_response_exempt and csrf_view_exempt.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaugustin committed Dec 29, 2012
1 parent e6f77b5 commit 8d38c55
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions django/views/decorators/csrf.py
Expand Up @@ -48,24 +48,6 @@ def process_view(self, request, callback, callback_args, callback_kwargs):
"""


def csrf_response_exempt(view_func):
"""
Modifies a view function so that its response is exempt
from the post-processing of the CSRF middleware.
"""
warnings.warn("csrf_response_exempt is deprecated. It no longer performs a "
"function, and calls to it can be removed.",
DeprecationWarning)
return view_func

def csrf_view_exempt(view_func):
"""
Marks a view function as being exempt from CSRF view protection.
"""
warnings.warn("csrf_view_exempt is deprecated. Use csrf_exempt instead.",
DeprecationWarning)
return csrf_exempt(view_func)

def csrf_exempt(view_func):
"""
Marks a view function as being exempt from the CSRF view protection.
Expand Down

0 comments on commit 8d38c55

Please sign in to comment.