﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
11185	Document how to customize widgets	Ben Smith	Tim Graham	"It would be nice to have documentation on how to customize form widgets.  Here's an example of something that I just figured out, and that would be nice to see in the documentation.

You can customize how a widget is rendered by overriding it's renderer.render method.  This class renders radio buttons as a horizontal line, instead of in a list.
{{{
class HorizRadioRenderer(forms.RadioSelect.renderer):
    def render(self):
        """"""Outputs radios""""""
        return mark_safe(u'\n'.join([u'%s\n' % w for w in self]))

}}}
"	Cleanup/optimization	closed	Documentation	1.0	Normal	fixed	widget	fadeev timograham@…	Accepted	1	0	0	0	0	0
