Permalink
Browse files

Removed csrf_response_exempt and csrf_view_exempt.

  • Loading branch information...
1 parent 2ecf56e commit 130829334c32f48b9ba6e6251d0e780c0d99cd4d @aaugustin aaugustin committed Dec 24, 2012
Showing with 0 additions and 18 deletions.
  1. +0 −18 django/views/decorators/csrf.py
@@ -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.

0 comments on commit 1308293

Please sign in to comment.