#20655: CheckboxSelectMultiple renders an empty widget when there are no choices
-------------------------------+--------------------
     Reporter:  caroline@…     |      Owner:  nobody
         Type:  Bug            |     Status:  new
    Component:  Uncategorized  |    Version:  1.5
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  1              |      UI/UX:  0
-------------------------------+--------------------
 This is particularly pertinent in the case of ModelChoiceField, where it
 may be desired that there are not yet any choices, and a '<ul></ul>' in
 the source code messes up the rendering.

 This is caused in django.forms.widgets, line 759.

 I propose to delete lines 759 and 777 and on line 777:

 if len(output):
     output.insert(0, '<ul>')
     output.append('</ul>')

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20655>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/072.62a13ccd4a82731cc76f57e7c4b8c3aa%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to