Fixed #5158 -- Minor typo in newforms docs. Thanks, hayley <djangocode@vortex.cx>.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5888 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
69cf1bb460
commit
543ab12c11
|
@ -1483,9 +1483,9 @@ just use the 'widget' argument on the field definition. For example::
|
||||||
class CommentForm(forms.Form):
|
class CommentForm(forms.Form):
|
||||||
name = forms.CharField()
|
name = forms.CharField()
|
||||||
url = forms.URLField()
|
url = forms.URLField()
|
||||||
comment = forms.CharField(widget=forms.TextArea)
|
comment = forms.CharField(widget=forms.Textarea)
|
||||||
|
|
||||||
This would specify a form with a comment that uses a larger TextArea widget,
|
This would specify a form with a comment that uses a larger Textarea widget,
|
||||||
rather than the default TextInput widget.
|
rather than the default TextInput widget.
|
||||||
|
|
||||||
Customizing widget instances
|
Customizing widget instances
|
||||||
|
|
Loading…
Reference in New Issue