#17137: ModelForm is_valid() accepts options outside choices
----------------------------+------------------------------------
     Reporter:  hayrynen@…  |                    Owner:  poirier
         Type:  Bug         |                   Status:  closed
    Component:  Forms       |                  Version:  1.3
     Severity:  Normal      |               Resolution:  invalid
     Keywords:              |             Triage Stage:  Accepted
    Has patch:  0           |      Needs documentation:  0
  Needs tests:  0           |  Patch needs improvement:  0
Easy pickings:  0           |                    UI/UX:  0
----------------------------+------------------------------------
Changes (by poirier):

 * status:  assigned => closed
 * resolution:   => invalid
 * stage:  Unreviewed => Accepted


Comment:

 From https://docs.djangoproject.com/en/dev/topics/forms/modelforms/:
 {{{
   ManyToManyField is represented by django.forms.ModelMultipleChoiceField,
 which is a MultipleChoiceField whose choices are a model QuerySet.
 }}}
 Validation of a !ModelMultipleChoiceField is controlled by the queryset
 value, not choices.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17137#comment:3>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to