Kaydet (Commit) b3103fee authored tarafından Adrian Holovaty's avatar Adrian Holovaty

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
üst 6d387d3d
......@@ -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::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment