diff options
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/csrf.txt | 12 |
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 ======== |
