diff options
| author | Ben Lomax <lomax.on.the.run@gmail.com> | 2023-07-08 21:00:42 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-07-10 07:55:02 +0200 |
| commit | 953f81e078fb7299b6d40d4e599e5f559e03952b (patch) | |
| tree | 66cafa352d883e72240a188b1f27ea22d4d79d03 /docs | |
| parent | 6d427288e410e9cad39b1aa1b4d4893fbd391282 (diff) | |
Refs #31949 -- Made @csrf_exempt decorator to work with async functions.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/csrf.txt | 4 | ||||
| -rw-r--r-- | docs/releases/5.0.txt | 1 | ||||
| -rw-r--r-- | docs/topics/async.txt | 1 |
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` |
