summaryrefslogtreecommitdiff
path: root/docs/topics/http
diff options
context:
space:
mode:
authorBen Lomax <lomax.on.the.run@gmail.com>2022-07-08 09:39:33 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-04-25 10:08:03 +0200
commit4dfc6ff8a81ed36dfc7c5b942ecab7217866b935 (patch)
tree0da6f1adf897c5db33438fd8c5b3c6c630659212 /docs/topics/http
parenta14ddc8cfccbc8da6c11e1208131abc3abd6ed5d (diff)
Refs #31949 -- Made @never_cache and @cache_control() decorators to work with async functions.
Thanks Carlton Gibson and Mariusz Felisiak for reviews.
Diffstat (limited to 'docs/topics/http')
-rw-r--r--docs/topics/http/decorators.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/topics/http/decorators.txt b/docs/topics/http/decorators.txt
index 3481eefb3c..4bcae64e27 100644
--- a/docs/topics/http/decorators.txt
+++ b/docs/topics/http/decorators.txt
@@ -117,6 +117,10 @@ client-side caching.
:func:`~django.utils.cache.patch_cache_control` for the details of the
transformation.
+ .. versionchanged:: 5.0
+
+ Support for wrapping asynchronous view functions was added.
+
.. function:: never_cache(view_func)
This decorator adds an ``Expires`` header to the current date/time.
@@ -127,6 +131,10 @@ client-side caching.
Each header is only added if it isn't already set.
+ .. versionchanged:: 5.0
+
+ Support for wrapping asynchronous view functions was added.
+
.. module:: django.views.decorators.common
Common