diff options
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/middleware.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/ref/middleware.txt b/docs/ref/middleware.txt index 3ba7d52b9d..8f3f3094e9 100644 --- a/docs/ref/middleware.txt +++ b/docs/ref/middleware.txt @@ -66,6 +66,14 @@ Adds a few conveniences for perfectionists: for each request by MD5-hashing the page content, and it'll take care of sending ``Not Modified`` responses, if appropriate. +.. attribute:: CommonMiddleware.response_redirect_class + +.. versionadded:: 1.8 + +Defaults to :class:`~django.http.HttpResponsePermanentRedirect`. Subclass +``CommonMiddleware`` and override the attribute to customize the redirects +issued by the middleware. + .. class:: BrokenLinkEmailsMiddleware * Sends broken link notification emails to :setting:`MANAGERS` (see |
