From 23abec9192c88f9372e5784ae69c9aa5be2b21be Mon Sep 17 00:00:00 2001 From: Ben Lomax Date: Fri, 19 May 2023 21:14:32 +0800 Subject: Refs #31949 -- Made @no_append_slash decorator to work with async functions. --- docs/releases/5.0.txt | 1 + docs/topics/async.txt | 1 + docs/topics/http/decorators.txt | 4 ++++ 3 files changed, 6 insertions(+) (limited to 'docs') diff --git a/docs/releases/5.0.txt b/docs/releases/5.0.txt index e6526dd798..6c16945f1f 100644 --- a/docs/releases/5.0.txt +++ b/docs/releases/5.0.txt @@ -237,6 +237,7 @@ Decorators * :func:`~django.views.decorators.cache.cache_control` * :func:`~django.views.decorators.cache.never_cache` + * :func:`~django.views.decorators.common.no_append_slash` * ``xframe_options_deny()`` * ``xframe_options_sameorigin()`` * ``xframe_options_exempt()`` diff --git a/docs/topics/async.txt b/docs/topics/async.txt index 444c88a1c6..73f4bf2a35 100644 --- a/docs/topics/async.txt +++ b/docs/topics/async.txt @@ -83,6 +83,7 @@ view functions: * :func:`~django.views.decorators.cache.cache_control` * :func:`~django.views.decorators.cache.never_cache` +* :func:`~django.views.decorators.common.no_append_slash` * ``xframe_options_deny()`` * ``xframe_options_sameorigin()`` * ``xframe_options_exempt()`` diff --git a/docs/topics/http/decorators.txt b/docs/topics/http/decorators.txt index 4bcae64e27..49219f3d5a 100644 --- a/docs/topics/http/decorators.txt +++ b/docs/topics/http/decorators.txt @@ -147,3 +147,7 @@ customization of :class:`~django.middleware.common.CommonMiddleware` behavior. This decorator allows individual views to be excluded from :setting:`APPEND_SLASH` URL normalization. + + .. versionchanged:: 5.0 + + Support for wrapping asynchronous view functions was added. -- cgit v1.3