summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorEmil Stenstròˆm <em@kth.se>2012-11-17 13:14:12 +0100
committerTim Graham <timograham@gmail.com>2013-10-03 16:15:29 -0400
commit7a97df190cb993056aa097befb3813100cfc286e (patch)
treeca4335710cd7ec345351f28d416b311bbae0c2c7 /docs
parentfa2e1371cda1e72d82b4133ad0b49a18e43ba411 (diff)
Fixed #19277 -- Added LocaleMiddleware.response_redirect_class
Thanks ppetrid at yawd.eu for the suggestion.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/middleware.txt6
-rw-r--r--docs/releases/1.7.txt6
2 files changed, 12 insertions, 0 deletions
diff --git a/docs/ref/middleware.txt b/docs/ref/middleware.txt
index 7aac286c2d..9799db0865 100644
--- a/docs/ref/middleware.txt
+++ b/docs/ref/middleware.txt
@@ -151,6 +151,12 @@ Enables language selection based on data from the request. It customizes
content for each user. See the :doc:`internationalization documentation
</topics/i18n/translation>`.
+.. attribute:: LocaleMiddleware.response_redirect_class
+
+Defaults to :class:`~django.http.HttpResponseRedirect`. Subclass
+``LocaleMiddleware`` and override the attribute to customize the redirects
+issued by the middleware.
+
Message middleware
------------------
diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt
index 8f650a1a9e..4014007bfa 100644
--- a/docs/releases/1.7.txt
+++ b/docs/releases/1.7.txt
@@ -267,6 +267,12 @@ Forms
:func:`~django.forms.formsets.formset_factory` to allow validating
a minimum number of submitted forms.
+Internationalization
+^^^^^^^^^^^^^^^^^^^^
+
+* The :attr:`django.middleware.locale.LocaleMiddleware.response_redirect_class`
+ attribute allows you to customize the redirects issued by the middleware.
+
Management Commands
^^^^^^^^^^^^^^^^^^^