summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-12-24 23:44:47 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-12-29 21:59:07 +0100
commit130829334c32f48b9ba6e6251d0e780c0d99cd4d (patch)
tree79b9901dff8ec07c79478fe15304316938e3b08a
parent2ecf56ea3f86cde1caaf4b21a807440d3870dcf0 (diff)
Removed csrf_response_exempt and csrf_view_exempt.
-rw-r--r--django/views/decorators/csrf.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/django/views/decorators/csrf.py b/django/views/decorators/csrf.py
index 60664ff932..7a7eb6bba6 100644
--- a/django/views/decorators/csrf.py
+++ b/django/views/decorators/csrf.py
@@ -48,24 +48,6 @@ uses the csrf_token template tag, or the CsrfViewMiddleware is used.
"""
-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.