summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-02-04 06:24:13 -0500
committerTim Graham <timograham@gmail.com>2014-02-04 06:24:13 -0500
commit867f8fd6c7f204769f2c72d1684b5c8c220aa5b4 (patch)
treecc67317d72e1a6e268f4ad03f5915987471237b0 /docs
parent6e0f1bc06df87453875e639f66cb608bcb393429 (diff)
Made some PEP8 fixes in docs/ref/forms/widgets.txt
Thanks Siecje.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/forms/widgets.txt6
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt
index f906e39125..5bd0a0b5ea 100644
--- a/docs/ref/forms/widgets.txt
+++ b/docs/ref/forms/widgets.txt
@@ -148,11 +148,9 @@ the 'type' attribute to take advantage of the new HTML5 input types. To do
this, you use the :attr:`Widget.attrs` argument when creating the widget::
class CommentForm(forms.Form):
- name = forms.CharField(
- widget=forms.TextInput(attrs={'class':'special'}))
+ name = forms.CharField(widget=forms.TextInput(attrs={'class': 'special'}))
url = forms.URLField()
- comment = forms.CharField(
- widget=forms.TextInput(attrs={'size':'40'}))
+ comment = forms.CharField(widget=forms.TextInput(attrs={'size': '40'}))
Django will then include the extra attributes in the rendered output: