From a quick test, it seems that it does.
This should be documented, and we should also make sure it's tested in
case it's not.
[1]
https://docs.djangoproject.com/en/dev/ref/forms/fields/#modelmultiplechoicefield
[2]
https://docs.djangoproject.com/en/dev/ref/forms/fields/#django.forms.ModelChoiceField.to_field_name
--
Ticket URL: <https://code.djangoproject.com/ticket/26837>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* version: 1.9 => master
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/26837#comment:1>
* status: new => assigned
* owner: nobody => smarlowucf
--
Ticket URL: <https://code.djangoproject.com/ticket/26837#comment:2>
Comment (by smarlowucf):
I looked into the tests for this ticket and noticed that the
`to_field_name` argument is covered for both `ModelMultipleChoiceField`
and `ModelChoiceField`.
However, I noticed that the `empty_label` argument is not covered for
`ModelChoiceField`.
Is it okay to add a test for this argument as part of this ticket or
should a new ticket be created?
--
Ticket URL: <https://code.djangoproject.com/ticket/26837#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"8b9e16ec858c23cb65ea5de95f65a71b31521841" 8b9e16ec]:
{{{
#!CommitTicketReference repository=""
revision="8b9e16ec858c23cb65ea5de95f65a71b31521841"
Fixed #26837 -- Documented ModelMultipleChoiceField.to_field_name
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26837#comment:4>
Comment (by Tim Graham <timograham@…>):
In [changeset:"fda151e512a7da8a45416da3828f2109486b6822" fda151e5]:
{{{
#!CommitTicketReference repository=""
revision="fda151e512a7da8a45416da3828f2109486b6822"
[1.10.x] Fixed #26837 -- Documented ModelMultipleChoiceField.to_field_name
Backport of 8b9e16ec858c23cb65ea5de95f65a71b31521841 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26837#comment:5>
Comment (by Tim Graham <timograham@…>):
In [changeset:"d5f1736dbd904096608cb35caf37decce9215915" d5f1736d]:
{{{
#!CommitTicketReference repository=""
revision="d5f1736dbd904096608cb35caf37decce9215915"
[1.9.x] Fixed #26837 -- Documented ModelMultipleChoiceField.to_field_name
Backport of 8b9e16ec858c23cb65ea5de95f65a71b31521841 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26837#comment:6>