#14363: ManyToManyRawIdWidget.render is assuming `attrs` is always passed as a
dict.
----------------------------------+-----------------------------------------
 Reporter:  tyrion                |       Owner:  jezdez    
   Status:  new                   |   Milestone:            
Component:  django.contrib.admin  |     Version:  1.2       
 Keywords:                        |       Stage:  Unreviewed
Has_patch:  1                     |  
----------------------------------+-----------------------------------------
 {{{
 #!python
     def render(self, name, value, attrs=None):
         attrs['class'] = 'vManyToManyRawIdAdminField'
         if value:
             value = ','.join([force_unicode(v) for v in value])
         else:
             value = ''
         return super(ManyToManyRawIdWidget, self).render(name, value,
 attrs)
 }}}
 Either if I pass something else than a dict-like object or if I don't pass
 nothing at all, the method will raise an exception.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14363>
Django <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 django-upda...@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