summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2014-11-21 18:55:58 +0200
committerTim Graham <timograham@gmail.com>2014-11-25 09:22:18 -0500
commit9a30acad8a1996c914351bad981d937de4db29a4 (patch)
tree15f6d9a64f5323121a7a532b3330a82f7dc5d104 /docs
parentd43dd03ca3afecc27f43fbc932f239470a2f07db (diff)
Fixed #21587 -- Added a warning for changing default of RedirectView.permanent.
Diffstat (limited to 'docs')
-rw-r--r--docs/internals/deprecation.txt4
-rw-r--r--docs/ref/class-based-views/base.txt5
-rw-r--r--docs/releases/1.8.txt7
3 files changed, 16 insertions, 0 deletions
diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt
index 1f4aca4cf3..3750d469dd 100644
--- a/docs/internals/deprecation.txt
+++ b/docs/internals/deprecation.txt
@@ -214,6 +214,10 @@ details on these changes.
* The `cache_choices` option to :class:`~django.forms.ModelChoiceField` and
:class:`~django.forms.ModelMultipleChoiceField` will be removed.
+* The default value of the
+ :attr:`RedirectView.permanent <django.views.generic.base.RedirectView.permanent>`
+ attribute will change from ``True`` to ``False``.
+
.. _deprecation-removed-in-1.8:
1.8
diff --git a/docs/ref/class-based-views/base.txt b/docs/ref/class-based-views/base.txt
index e6c35fffd0..523b39d0e2 100644
--- a/docs/ref/class-based-views/base.txt
+++ b/docs/ref/class-based-views/base.txt
@@ -222,6 +222,11 @@ RedirectView
status code 301. If ``False``, then the redirect will use status code
302. By default, ``permanent`` is ``True``.
+ .. deprecated:: 1.8
+
+ The default value of the ``permanent`` attribute will change from
+ ``True`` to ``False`` in Django 1.9.
+
.. attribute:: query_string
Whether to pass along the GET query string to the new location. If
diff --git a/docs/releases/1.8.txt b/docs/releases/1.8.txt
index 7064891312..ba0b0cfa2b 100644
--- a/docs/releases/1.8.txt
+++ b/docs/releases/1.8.txt
@@ -1097,6 +1097,13 @@ deprecated: you should rename your ``qn`` arguments to ``compiler``, and call
``compiler.quote_name_unless_alias(...)`` where you previously called
``qn(...)``.
+Default value of ``RedirectView.permanent``
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+The default value of the
+:attr:`RedirectView.permanent <django.views.generic.base.RedirectView.permanent>`
+attribute will change from ``True`` to ``False`` in Django 1.9.
+
.. removed-features-1.8:
Features removed in 1.8