summaryrefslogtreecommitdiff
path: root/docs/ref/forms
diff options
context:
space:
mode:
authorDaniel Musketa <daniel@musketa.de>2018-03-12 14:39:09 +0100
committerTim Graham <timograham@gmail.com>2018-03-12 09:39:09 -0400
commite0eab28f9f3440f68c5ed318554e3537976b816f (patch)
tree847f0f788109b5e7756f1378bfb2641102808df6 /docs/ref/forms
parente17776e2cd3ae5b9ea13325128b2bcfde552da7c (diff)
Fixed a couple mistakes in docs/ref/forms/widgets.txt.
Diffstat (limited to 'docs/ref/forms')
-rw-r--r--docs/ref/forms/widgets.txt7
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt
index eb858f1278..4475273137 100644
--- a/docs/ref/forms/widgets.txt
+++ b/docs/ref/forms/widgets.txt
@@ -228,9 +228,9 @@ foundation for custom widgets.
.. code-block:: pycon
>>> from django import forms
- >>> name = forms.TextInput(attrs={'size': 10, 'title': 'Your name',})
+ >>> name = forms.TextInput(attrs={'size': 10, 'title': 'Your name'})
>>> name.render('name', 'A name')
- '<input title="Your name" type="text" name="name" value="A name" size="10" required>'
+ '<input title="Your name" type="text" name="name" value="A name" size="10">'
If you assign a value of ``True`` or ``False`` to an attribute,
it will be rendered as an HTML5 boolean attribute::
@@ -788,8 +788,7 @@ that specifies the template used to render each choice. For example, for the
* ``template_name``: ``'django/forms/widgets/checkbox_select.html'``
* ``option_template_name``: ``'django/forms/widgets/checkbox_option.html'``
- Similar to :class:`SelectMultiple`, but rendered as a list of check
- buttons:
+ Similar to :class:`SelectMultiple`, but rendered as a list of checkboxes:
.. code-block:: html