Code

Ticket #10135: 10135.2.diff

File 10135.2.diff, 987 bytes (added by Rob Hudson <treborhudson@…>, 5 years ago)

Typo in last diff.

Line 
1diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt
2index 0123380..2f40b6f 100644
3--- a/docs/ref/forms/fields.txt
4+++ b/docs/ref/forms/fields.txt
5@@ -23,6 +23,7 @@ how they work. Each ``Field`` instance has a ``clean()`` method, which takes
6 a single argument and either raises a ``django.forms.ValidationError``
7 exception or returns the clean value::
8 
9+    >>> from django import forms
10     >>> f = forms.EmailField()
11     >>> f.clean('foo@example.com')
12     u'foo@example.com'
13diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt
14index c9cc292..421696a 100644
15--- a/docs/ref/forms/widgets.txt
16+++ b/docs/ref/forms/widgets.txt
17@@ -107,6 +107,8 @@ built-in Field classes.
18 However, if you want to use a different widget for a field, you can -
19 just use the 'widget' argument on the field definition. For example::
20 
21+    from django import forms
22+   
23     class CommentForm(forms.Form):
24         name = forms.CharField()
25         url = forms.URLField()