From b3103feead9c726d56cae09be92c2104f5a057e7 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sat, 25 Aug 2007 18:29:26 +0000 Subject: [PATCH] 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 --- docs/newforms.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/newforms.txt b/docs/newforms.txt index 0b59a7ad65..36c627b398 100644 --- a/docs/newforms.txt +++ b/docs/newforms.txt @@ -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::