Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #5256 -- Fixed incorrect use of super() in docs/newforms.txt ex…

…ample. Thanks, trey@ktrl.com

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6003 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b3103feead9c726d56cae09be92c2104f5a057e7 1 parent 6d387d3
Adrian Holovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/newforms.txt
2  docs/newforms.txt
View
@@ -1554,7 +1554,7 @@ as a custom extension to the ``TextInput`` widget::
class CommentWidget(forms.TextInput):
def __init__(self, *args, **kwargs):
kwargs.setdefault('attrs',{}).update({'size': '40'})
- super(forms.TextInput, self).__init__(*args, **kwargs)
+ super(CommentWidget, self).__init__(*args, **kwargs)
Then you can use this widget in your forms::
Please sign in to comment.
Something went wrong with that request. Please try again.