From 74f7deec9e334a69bfbfdd068285618534198bd5 Mon Sep 17 00:00:00 2001 From: Ben Lomax Date: Sat, 8 Jul 2023 22:51:19 +0100 Subject: Refs #31949 -- Made make_middleware_decorator to work with async functions. --- docs/ref/csrf.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'docs/ref') 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`. # ... 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`. # ... 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 ======== -- cgit v1.3