Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class HorizRadioRenderer(forms.RadioSelect.renderer):
- """ this overrides widget method to put radio buttons horizontally
- instead of vertically.
- """
- def render(self):
- """Outputs radios"""
- return mark_safe(u'\n'.join([u'%s\n' % w for w in self]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement