summaryrefslogtreecommitdiff
path: root/docs/topics/http
diff options
context:
space:
mode:
authorCarlton Gibson <carlton.gibson@noumenal.es>2020-10-20 09:14:48 +0200
committerCarlton Gibson <carlton@noumenal.es>2020-10-22 14:15:19 +0200
commitad11f5b8c9cbfdb763e08c83170694abc0c5fc1e (patch)
tree28647127cf0bc05120bee7417609ec997a5b1f96 /docs/topics/http
parent34180922380cf41cd684f846ecf00f92eb289bcf (diff)
Fixed #32124 -- Added per-view opt-out for APPEND_SLASH behavior.
Diffstat (limited to 'docs/topics/http')
-rw-r--r--docs/topics/http/decorators.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/topics/http/decorators.txt b/docs/topics/http/decorators.txt
index fe91d0cc98..cabdd4f01a 100644
--- a/docs/topics/http/decorators.txt
+++ b/docs/topics/http/decorators.txt
@@ -121,3 +121,18 @@ client-side caching.
This decorator adds a ``Cache-Control: max-age=0, no-cache, no-store,
must-revalidate, private`` header to a response to indicate that a page
should never be cached.
+
+.. module:: django.views.decorators.common
+
+Common
+======
+
+.. versionadded:: 3.2
+
+The decorators in :mod:`django.views.decorators.common` allow per-view
+customization of :class:`~django.middleware.common.CommonMiddleware` behavior.
+
+.. function:: no_append_slash()
+
+ This decorator allows individual views to be excluded from
+ :setting:`APPEND_SLASH` URL normalization.