From 953f81e078fb7299b6d40d4e599e5f559e03952b Mon Sep 17 00:00:00 2001 From: Ben Lomax Date: Sat, 8 Jul 2023 21:00:42 +0100 Subject: Refs #31949 -- Made @csrf_exempt decorator to work with async functions. --- docs/ref/csrf.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs/ref') 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`. 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. -- cgit v1.3