Opened 9 years ago
Closed 9 years ago
#27723 closed Bug (fixed)
`type` is not propagated correctly to widgets in MultiWidgets
| Reported by: | Mariusz Felisiak | Owned by: | Mariusz Felisiak |
|---|---|---|---|
| Component: | Forms | Version: | dev |
| Severity: | Release blocker | Keywords: | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
If type is passed in attrs to MultiWidget then input HTML is incorrect e.g.:
<input name="date_0" type="date" type="text" />
instead of
<input name="date_0" type="date" />
Attachments (1)
Change History (6)
by , 9 years ago
| Attachment: | 27723.diff added |
|---|
comment:1 by , 9 years ago
comment:3 by , 9 years ago
| Patch needs improvement: | set |
|---|---|
| Severity: | Normal → Release blocker |
| Triage Stage: | Unreviewed → Accepted |
In earlier versions of Django, passing attrs doesn't override the type in subwidgets. Solving #5851 to allow different attrs for different subwidgets might be a better solution.
comment:4 by , 9 years ago
| Patch needs improvement: | unset |
|---|
Note:
See TracTickets
for help on using tickets.
It's a regression in #15667 that only affects master.