Opened 17 years ago
Closed 17 years ago
#6036 closed (duplicate)
MultiWidget's render method does not "mark_safe" the HTML it returns
Reported by: | David Tulig | Owned by: | David Tulig |
---|---|---|---|
Component: | Forms | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
MultiWidget needs to call the "mark_safe" function on the HTML output before returning or it will not render correctly.
To reproduce the bug:
- Create a form with the field:
forms.SplitDateTimeField(widget=forms.SplitDateTimeWidget)
- Create a template where you explicitly position the form fields, ie.
{{ form.start_datetime.label_tag }} {{ form.start_datetime }}
. Do not use as_table or any of the other short cuts.
Attachments (1)
Change History (3)
by , 17 years ago
Attachment: | multiwidget_render_fix.diff added |
---|
comment:1 by , 17 years ago
Status: | new → assigned |
---|
comment:2 by , 17 years ago
Resolution: | → duplicate |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Thanks dtulig. I was triaging in reverse and came across #6113 first so I'll dupe as that.