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/ref/csrf.txt | |
| parent | 6d427288e410e9cad39b1aa1b4d4893fbd391282 (diff) | |
Refs #31949 -- Made @csrf_exempt decorator to work with async functions.
Diffstat (limited to 'docs/ref/csrf.txt')
| -rw-r--r-- | docs/ref/csrf.txt | 4 |
1 files changed, 4 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. |
