Removed csrf_response_exempt and csrf_view_exempt.
This commit is contained in:
parent
2ecf56ea3f
commit
130829334c
|
@ -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):
|
def csrf_exempt(view_func):
|
||||||
"""
|
"""
|
||||||
Marks a view function as being exempt from the CSRF view protection.
|
Marks a view function as being exempt from the CSRF view protection.
|
||||||
|
|
Loading…
Reference in New Issue