mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
[3.1.x] Refs #32013 -- Added backward incompatibility note about ModelChoiceIterator changes.
Backport of ba6b32e5ef
from master
This commit is contained in:
parent
b9ee225d08
commit
73d084bf97
2 changed files with 11 additions and 1 deletions
|
@ -1439,7 +1439,9 @@ customize the yielded 2-tuple choices.
|
|||
|
||||
In older versions, the first ``value`` element in the choice tuple
|
||||
is the ``field`` value itself, rather than a
|
||||
``ModelChoiceIteratorValue`` instance.
|
||||
``ModelChoiceIteratorValue`` instance. In most cases this proxies
|
||||
transparently but, if you need the ``field`` value itself, use the
|
||||
:attr:`ModelChoiceIteratorValue.value` attribute instead.
|
||||
|
||||
``ModelChoiceIteratorValue``
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue