#22000: 'ModelChoiceField' object has no attribute 'to_field_name'
---------------------------+--------------------------------------
     Reporter:  anonymous  |                    Owner:  nobody
         Type:  Bug        |                   Status:  closed
    Component:  Forms      |                  Version:  1.6
     Severity:  Normal     |               Resolution:  invalid
     Keywords:             |             Triage Stage:  Unreviewed
    Has patch:  0          |      Needs documentation:  0
  Needs tests:  0          |  Patch needs improvement:  0
Easy pickings:  0          |                    UI/UX:  0
---------------------------+--------------------------------------
Changes (by Alasdair):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 A model choice field is not a widget, it is not correct to use it in
 `widgets`.

 I'm closing this ticket, because it appears to be an issue with your code,
 not Django. If you need further help customising the form in your code,
 please see wiki:UseSupportChannels

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22000#comment:2>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.0d524880ea31e786da652049cd56a53c%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to