summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/csrf.txt4
-rw-r--r--docs/releases/5.0.txt1
-rw-r--r--docs/topics/async.txt1
3 files changed, 6 insertions, 0 deletions
diff --git a/docs/ref/csrf.txt b/docs/ref/csrf.txt
index 583f78472c..d52539e6b6 100644
--- a/docs/ref/csrf.txt
+++ b/docs/ref/csrf.txt
@@ -150,6 +150,10 @@ class-based views<decorating-class-based-views>`.
def my_view(request):
return HttpResponse("Hello world")
+ .. versionchanged:: 5.0
+
+ Support for wrapping asynchronous view functions was added.
+
.. function:: csrf_protect(view)
Decorator that provides the protection of ``CsrfViewMiddleware`` to a view.
diff --git a/docs/releases/5.0.txt b/docs/releases/5.0.txt
index 722d3bcf0b..8884886b51 100644
--- a/docs/releases/5.0.txt
+++ b/docs/releases/5.0.txt
@@ -258,6 +258,7 @@ Decorators
* :func:`~django.views.decorators.cache.cache_control`
* :func:`~django.views.decorators.cache.never_cache`
* :func:`~django.views.decorators.common.no_append_slash`
+ * :func:`~django.views.decorators.csrf.csrf_exempt`
* :func:`~django.views.decorators.debug.sensitive_variables`
* :func:`~django.views.decorators.debug.sensitive_post_parameters`
* :func:`~django.views.decorators.http.condition`
diff --git a/docs/topics/async.txt b/docs/topics/async.txt
index 6713914283..fb50f007e2 100644
--- a/docs/topics/async.txt
+++ b/docs/topics/async.txt
@@ -84,6 +84,7 @@ view functions:
* :func:`~django.views.decorators.cache.cache_control`
* :func:`~django.views.decorators.cache.never_cache`
* :func:`~django.views.decorators.common.no_append_slash`
+* :func:`~django.views.decorators.csrf.csrf_exempt`
* :func:`~django.views.decorators.http.condition`
* :func:`~django.views.decorators.http.etag`
* :func:`~django.views.decorators.http.last_modified`