mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #32013 -- Added backward incompatibility note about ModelChoiceIterator changes.
This commit is contained in:
@@ -724,6 +724,14 @@ Miscellaneous
|
||||
without the ``type`` attribute to follow `WHATWG recommendations
|
||||
<https://html.spec.whatwg.org/multipage/scripting.html#the-script-element>`_.
|
||||
|
||||
* :class:`~django.forms.ModelChoiceIterator`, used by
|
||||
:class:`~django.forms.ModelChoiceField` and
|
||||
:class:`~django.forms.ModelMultipleChoiceField`, now yields 2-tuple choices
|
||||
containing :class:`~django.forms.ModelChoiceIteratorValue` instances as the
|
||||
first ``value`` element in each choice. In most cases this proxies
|
||||
transparently, but if you need the ``field`` value itself, use the
|
||||
:attr:`.ModelChoiceIteratorValue.value` attribute instead.
|
||||
|
||||
.. _deprecated-features-3.1:
|
||||
|
||||
Features deprecated in 3.1
|
||||
|
||||
Reference in New Issue
Block a user