summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorBen Lomax <lomax.on.the.run@gmail.com>2023-07-08 22:51:19 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-09-13 11:41:01 +0200
commit74f7deec9e334a69bfbfdd068285618534198bd5 (patch)
tree44cceda16c83c0eac7512df83ec8bfa4ef05dfee /docs/ref
parent059cb0dbc9adc9c330f5fa36ba61acf00a6f259b (diff)
Refs #31949 -- Made make_middleware_decorator to work with async functions.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/csrf.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/ref/csrf.txt b/docs/ref/csrf.txt
index d52539e6b6..ae94ccdee4 100644
--- a/docs/ref/csrf.txt
+++ b/docs/ref/csrf.txt
@@ -170,6 +170,10 @@ class-based views<decorating-class-based-views>`.
# ...
return render(request, "a_template.html", c)
+ .. versionchanged:: 5.0
+
+ Support for wrapping asynchronous view functions was added.
+
.. function:: requires_csrf_token(view)
Normally the :ttag:`csrf_token` template tag will not work if
@@ -190,10 +194,18 @@ class-based views<decorating-class-based-views>`.
# ...
return render(request, "a_template.html", c)
+ .. versionchanged:: 5.0
+
+ Support for wrapping asynchronous view functions was added.
+
.. function:: ensure_csrf_cookie(view)
This decorator forces a view to send the CSRF cookie.
+ .. versionchanged:: 5.0
+
+ Support for wrapping asynchronous view functions was added.
+
Settings
========