#17657: ModelForm does not respect ModelMultipleChoiceField's to_field_name
attribute
--------------------------------+------------------------------------
     Reporter:  andreyfedoseev  |                    Owner:  nobody
         Type:  Bug             |                   Status:  new
    Component:  Forms           |                  Version:  1.3
     Severity:  Normal          |               Resolution:
     Keywords:                  |             Triage Stage:  Accepted
    Has patch:  1               |      Needs documentation:  0
  Needs tests:  0               |  Patch needs improvement:  1
Easy pickings:  0               |                    UI/UX:  0
--------------------------------+------------------------------------

Comment (by tchaumeny):

 Replying to [comment:6 bmispelon]:

 > From my understanding, `model_to_dict` needs access to the form's
 field's `to_field_name` which is a problem because the current
 implementation is only passed a model instance and two lists of field
 names (one to include and one to exclude).

 I just run on that bug on production (Django 1.6) with a
 `ModelChoiceField` and after looking at the code I came to the same
 conclusion. It would be nice to do something about it.

--
Ticket URL: <https://code.djangoproject.com/ticket/17657#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/072.edd05011445217ed64083d875fa69c9d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to