diff options
| author | Marc Tamlyn <marc.tamlyn@gmail.com> | 2014-06-15 12:02:39 +0100 |
|---|---|---|
| committer | Marc Tamlyn <marc.tamlyn@gmail.com> | 2014-06-20 20:29:46 +0100 |
| commit | 2764146586509c2c81ad14da4ac86efa3a949308 (patch) | |
| tree | 18ab69a95700724324f80979960e74f56ca854d6 /docs | |
| parent | 97adfc2bf8393d1128917ea1f57f3c3a7ef8caa6 (diff) | |
Fixed #22838 -- Deprecated ModelChoiceField.cache_choices.
Undocumented, untested and probably not even useful feature.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/internals/deprecation.txt | 3 | ||||
| -rw-r--r-- | docs/releases/1.8.txt | 9 |
2 files changed, 12 insertions, 0 deletions
diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index 39c42ae7bf..54ca279ff1 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -154,6 +154,9 @@ details on these changes. * Database test settings as independent entries in the database settings, prefixed by ``TEST_``, will no longer be supported. +* The `cache_choices` option to :class:`~django.forms.ModelChoiceField` and + :class:`~django.forms.MultipleModelChoiceField` will be removed. + .. _deprecation-removed-in-1.8: 1.8 diff --git a/docs/releases/1.8.txt b/docs/releases/1.8.txt index b406c661fe..2351e96c18 100644 --- a/docs/releases/1.8.txt +++ b/docs/releases/1.8.txt @@ -479,3 +479,12 @@ arguments through ``argparse.add_argument()``. See The class :class:`~django.core.management.NoArgsCommand` is now deprecated and will be removed in Django 2.0. Use :class:`~django.core.management.BaseCommand` instead, which takes no arguments by default. + +``cache_choices`` option of ``ModelChoiceField`` and ``MultipleModelChoiceField`` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +:class:`~django.forms.ModelChoiceField` and +:class:`~django.forms.MultipleModelChoiceField` took an undocumented, untested +option ``cache_choices``. This cached querysets between multiple renderings of +the same ``Form`` object. This option is subject to an accelerated deprecation +and will be removed in Django 1.9. |
