Permalink
Browse files

Fixed #22136 -- Updated comment for Textarea widget

Thanks Aymeric Augustin for the suggestion.
  • Loading branch information...
1 parent b1dcfdd commit 9f76d0d351953b513e9cd4e2fbd7690077a65fae @claudep claudep committed Feb 27, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/forms/widgets.py
View
2 django/forms/widgets.py
@@ -401,7 +401,7 @@ def value_from_datadict(self, data, files, name):
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)

0 comments on commit 9f76d0d

Please sign in to comment.