Fixed #5256 -- Fixed incorrect use of super() in docs/newforms.txt example. Thanks, trey@ktrl.com

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6003 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2007-08-25 18:29:26 +00:00
parent 6d387d3d1b
commit b3103feead
1 changed files with 1 additions and 1 deletions

View File

@ -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::