Skip to content

Instantly share code, notes, and snippets.

@afarnham
Created July 29, 2008 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afarnham/3171 to your computer and use it in GitHub Desktop.
Save afarnham/3171 to your computer and use it in GitHub Desktop.
class RatingWidget(forms.MultiWidget):
def __init__(self):
widgets = (QuestionWidget, forms.RadioSelect(attrs={'class': 'yourclass'}, choices=RATINGS), forms.Textarea)
super(RatingWidget, self).__init__(widgets)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment