CheckboxSelectMultiple renders an empty ul when there are no choices
|Reported by:||caroline@…||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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:
Change History (3)
comment:1 Changed 2 years ago by caroline@…
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Summary changed from CheckboxSelectMultiple renders an empty widget when there are no choices to CheckboxSelectMultiple renders an empty ul when there are no choices