From e0eab28f9f3440f68c5ed318554e3537976b816f Mon Sep 17 00:00:00 2001 From: Daniel Musketa Date: Mon, 12 Mar 2018 14:39:09 +0100 Subject: [PATCH] Fixed a couple mistakes in docs/ref/forms/widgets.txt. --- docs/ref/forms/widgets.txt | 7 +++---- 1 file 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') - '' + '' 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