#25980: Disabled ModelMultipleChoiceField can't handle querysets as an initial
value
------------------------+------------------------------------
     Reporter:  karyon  |                    Owner:  nobody
         Type:  Bug     |                   Status:  new
    Component:  Forms   |                  Version:  1.9
     Severity:  Normal  |               Resolution:
     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 timgraham):

 * type:  Uncategorized => Bug
 * stage:  Unreviewed => Accepted
 * component:  Uncategorized => Forms


Comment:

 On further inspection, it looks like `ModelMultipleChoicField` is supposed
 to accept querysets as initial values (according to
 3318595c0bfeda9f6bae8aa11dda68647ae55fde).

 I'm not sure about the answer to your second question. You could find the
 ticket that introduced the ability to disable fields and see if there is
 any discussion there. If not, try to implement what you described and see
 if any tests break.

--
Ticket URL: <https://code.djangoproject.com/ticket/25980#comment:10>
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/064.8cc0ebe665c0a0c5d124f95fa7f8f358%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to