#7738: [newforms-admin] defaults for ManyToManyFields are broken on add page
--------------------------------------+-------------------------------------
          Reporter:  jshaffer         |         Owner:  nobody        
            Status:  new              |     Milestone:  1.0           
         Component:  Admin interface  |       Version:  newforms-admin
        Resolution:                   |      Keywords:                
             Stage:  Accepted         |     Has_patch:  0             
        Needs_docs:  0                |   Needs_tests:  0             
Needs_better_patch:  0                |  
--------------------------------------+-------------------------------------
Changes (by kratorius):

  * milestone:  => 1.0

Comment:

 The problem described here belongs to this line:
 
http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/options.py#L501
 Actually, the {{{initial_data}}} for model forms on
 {{{SelectMultipleWidget}}} expects an iterable object like a list or tuple
 for selecting the choices, while instead we're passing a string - i.e.
 "12" - that get then divided in in "1" and "2". I thought this could be
 changed in something like {{{string.split(',')}}} but I can see this
 behaviour is not documented anywhere, so maybe some core dev has a better
 idea (or maybe this should be marked as wontfix?).

-- 
Ticket URL: <http://code.djangoproject.com/ticket/7738#comment:2>
Django Code <http://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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to