summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-08-25 18:29:26 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-08-25 18:29:26 +0000
commitb3103feead9c726d56cae09be92c2104f5a057e7 (patch)
treefc2cc3055ab974aad7fc01261dbfdabc3143f31e /docs
parent6d387d3d1bc481b47f6be4e4294bb87cc8b75c9f (diff)
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
Diffstat (limited to 'docs')
-rw-r--r--docs/newforms.txt2
1 files changed, 1 insertions, 1 deletions
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::