Advertisement
Guest User

cust renderer

a guest
Dec 28th, 2011
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. class HorizRadioRenderer(forms.RadioSelect.renderer):
  2.     """ this overrides widget method to put radio buttons horizontally
  3.        instead of vertically.
  4.    """
  5.     def render(self):
  6.             """Outputs radios"""
  7.             return mark_safe(u'\n'.join([u'%s\n' % w for w in self]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement