Opened 7 months ago
Last modified 7 months ago
#35409 closed Bug
CheckbioxMultipleSelect widget is broken — at Initial Version
Reported by: | Marc Gomillion | Owned by: | nobody |
---|---|---|---|
Component: | Forms | Version: | 4.2 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
My application has an emailer page with a list of recipients that can be edited as follows.
In the form definition:
recipients = forms.MultipleChoiceField(widget=forms.CheckboxSelectMultiple)
In init:
self.fieldsrecipients.choices = recipient_choices
This has worked since 2009, but Django 4.2.x has broken it as it does not insert line breaks between the recipients and the list is a jumbled mess. I've coded around it by using the SelectMultiple widget, which still allows editing of the list, but not in obvious ways to my users, and is thus unacceptable.
I've attached images of the list using Django 3.2 and 4.2.
Change History (2)
by , 7 months ago
Attachment: | recipient list 3.2.png added |
---|
by , 7 months ago
Attachment: | recipient list 4.2.png added |
---|