#6036: MultiWidget's render method does not "mark_safe" the HTML it returns
-----------------------+----------------------------------------------------
Reporter: dtulig | Owner: dtulig
Status: new | Component: django.newforms
Version: SVN | Keywords:
Stage: Unreviewed | Has_patch: 1
-----------------------+----------------------------------------------------
MultiWidget needs to call the "mark_safe" function on the HTML output
before returning or it will not render correctly.
To reproduce the bug:[[BR]]
1. Create a form with the field:[[BR]]
{{{ forms.SplitDateTimeField(widget=forms.SplitDateTimeWidget) }}}[[BR]]
2. 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.
--
Ticket URL: <http://code.djangoproject.com/ticket/6036>
Django Code <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---