1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Refs #31949 -- Made @never_cache and @cache_control() decorators to work with async functions.

Thanks Carlton Gibson and Mariusz Felisiak for reviews.
This commit is contained in:
Ben Lomax
2022-07-08 09:39:33 +01:00
committed by Mariusz Felisiak
parent a14ddc8cfc
commit 4dfc6ff8a8
5 changed files with 182 additions and 26 deletions

View File

@@ -214,7 +214,9 @@ CSRF
Decorators
~~~~~~~~~~
* ...
* The :func:`~django.views.decorators.cache.cache_control` and
:func:`~django.views.decorators.cache.never_cache` decorators now support
wrapping asynchronous view functions.
Email
~~~~~