mirror of
https://github.com/django/django.git
synced 2025-12-15 21:45:20 +00:00
Fixed #21587 -- Added a warning for changing default of RedirectView.permanent.
This commit is contained in:
parent
d43dd03ca3
commit
9a30acad8a
7 changed files with 135 additions and 21 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue