It's helpful if you can include steps to reproduce the issue. Here's what I 
see on master. I also see the same on 1.8, besides some whitespace 
differences due to template-based widget rendering that's new in Django 
1.11.

>>> from django.forms import CheckboxSelectMultiple
>>> w = CheckboxSelectMultiple(attrs={'foo': 'bar'})
>>> w = CheckboxSelectMultiple(attrs={'foo': 'bar'}, choices=[('foo', 
'bar')])
>>> w.render('name', 'value')
'<ul>\n    <li><label><input type="checkbox" name="name" value="foo" 
foo="bar" />\n bar</label>\n\n</li>\n</ul>'

On Thursday, June 22, 2017 at 4:58:33 PM UTC-4, Dylan Young wrote:
>
> Hey all:
>
> Just wanted to check in about a potential bug before I file it in the bug 
> tracker; it's potentially fixed already since I'm working on Django 1.8, 
> but I can't see any record of the bug, so wanted to see if it's come up. 
>
> The CheckboxSelectMultiple widget doesn't seem to apply attrs correctly 
> (i.e. on the input elements) or at all that I can see (though I just looked 
> quickly). 
>
> Is this a known bug?
>
> Best,
>
> Casey Meijer
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" 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].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/6340c074-764b-4375-b8f4-23543caefa54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to