summaryrefslogtreecommitdiff
path: root/django/forms/widgets.py
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2014-02-27 19:36:44 +0100
committerClaude Paroz <claude@2xlibre.net>2014-02-27 19:38:37 +0100
commit9f76d0d351953b513e9cd4e2fbd7690077a65fae (patch)
treefbd076c8db1b7e163d291abae4c9711cc31a224c /django/forms/widgets.py
parentb1dcfddb729514d8eaa0a8276fa9fdb22a6f037e (diff)
Fixed #22136 -- Updated comment for Textarea widget
Thanks Aymeric Augustin for the suggestion.
Diffstat (limited to 'django/forms/widgets.py')
-rw-r--r--django/forms/widgets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/widgets.py b/django/forms/widgets.py
index aeb674d013..5c50ca049f 100644
--- a/django/forms/widgets.py
+++ b/django/forms/widgets.py
@@ -401,7 +401,7 @@ class ClearableFileInput(FileInput):
class Textarea(Widget):
def __init__(self, attrs=None):
- # The 'rows' and 'cols' attributes are required for HTML correctness.
+ # Use slightly better defaults than HTML's 20x2 box
default_attrs = {'cols': '40', 'rows': '10'}
if attrs:
default_attrs.update(attrs)