mirror of
https://github.com/django/django.git
synced 2025-08-23 18:29:12 +00:00
[1.7.x] Added missing items to deprecation timeline/1.7 release notes.
Backport of ecf109f2159f4581adb354263406116c2bda11d7 from master.
This commit is contained in:
parent
bc3021b93b
commit
07bd23d329
@ -68,9 +68,9 @@ details on these changes.
|
|||||||
|
|
||||||
* ``ModelAdmin.get_formsets`` will be removed.
|
* ``ModelAdmin.get_formsets`` will be removed.
|
||||||
|
|
||||||
* Remove the backward compatible shims introduced to rename the
|
* The backward compatibility shim introduced to rename the
|
||||||
``BaseMemcachedCache._get_memcache_timeout()`` method to
|
``BaseMemcachedCache._get_memcache_timeout()`` method to
|
||||||
``get_backend_timeout()``.
|
``get_backend_timeout()`` will be removed.
|
||||||
|
|
||||||
* The ``--natural`` and ``-n`` options for :djadmin:`dumpdata` will be removed.
|
* The ``--natural`` and ``-n`` options for :djadmin:`dumpdata` will be removed.
|
||||||
Use :djadminopt:`--natural-foreign` instead.
|
Use :djadminopt:`--natural-foreign` instead.
|
||||||
@ -103,8 +103,10 @@ details on these changes.
|
|||||||
``requires_system_checks``. Admin validators will be replaced by admin
|
``requires_system_checks``. Admin validators will be replaced by admin
|
||||||
checks.
|
checks.
|
||||||
|
|
||||||
* ``ModelAdmin.validator`` will be removed in favor of the new ``checks``
|
* The ``ModelAdmin.validator_class`` and ``default_validator_class`` attributes
|
||||||
attribute.
|
will be removed.
|
||||||
|
|
||||||
|
* ``ModelAdmin.validate()`` will be removed.
|
||||||
|
|
||||||
* ``django.db.backends.DatabaseValidation.validate_field`` will be removed in
|
* ``django.db.backends.DatabaseValidation.validate_field`` will be removed in
|
||||||
favor of the ``check_field`` method.
|
favor of the ``check_field`` method.
|
||||||
@ -122,6 +124,20 @@ details on these changes.
|
|||||||
* Database test settings as independent entries in the database settings,
|
* Database test settings as independent entries in the database settings,
|
||||||
prefixed by ``TEST_``, will no longer be supported.
|
prefixed by ``TEST_``, will no longer be supported.
|
||||||
|
|
||||||
|
* 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``.
|
||||||
|
|
||||||
|
* ``django.contrib.sitemaps.FlatPageSitemap`` will be removed in favor of
|
||||||
|
``django.contrib.flatpages.sitemaps.FlatPageSitemap``.
|
||||||
|
|
||||||
|
* Private API ``django.test.utils.TestTemplateLoader`` will be removed.
|
||||||
|
|
||||||
|
* The ``django.contrib.contenttypes.generic`` module will be removed.
|
||||||
|
|
||||||
.. _deprecation-removed-in-1.8:
|
.. _deprecation-removed-in-1.8:
|
||||||
|
|
||||||
1.8
|
1.8
|
||||||
|
@ -1698,10 +1698,16 @@ value of the former flag is used. Defining both ``requires_system_checks`` and
|
|||||||
|
|
||||||
The ``check()`` method has replaced the old ``validate()`` method.
|
The ``check()`` method has replaced the old ``validate()`` method.
|
||||||
|
|
||||||
``ModelAdmin.validator``
|
``ModelAdmin`` validators
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
``ModelAdmin.validator`` is deprecated in favor of new ``checks`` attribute.
|
The ``ModelAdmin.validator_class`` and ``default_validator_class`` attributes
|
||||||
|
are deprecated in favor of the new ``checks_class`` attribute.
|
||||||
|
|
||||||
|
The ``ModelAdmin.validate()`` method is deprecated in favor of
|
||||||
|
``ModelAdmin.check()``.
|
||||||
|
|
||||||
|
The ``django.contrib.admin.validation`` module is deprecated.
|
||||||
|
|
||||||
``django.db.backends.DatabaseValidation.validate_field``
|
``django.db.backends.DatabaseValidation.validate_field``
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
Loading…
x
Reference in New Issue
Block a user