summaryrefslogtreecommitdiff
path: root/docs/ref/forms/fields.txt
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2009-02-21 08:45:47 +0000
committerAdrian Holovaty <adrian@holovaty.com>2009-02-21 08:45:47 +0000
commit28448a53a9d4cf17306789cd9980162795c644ed (patch)
tree808957cdf4fcbb62183d6b42fc10efdbf949f38e /docs/ref/forms/fields.txt
parent641853331d97138cf32c97d5a0187fc5e0491125 (diff)
Fixed #10135 -- Added some import statements to docs/ref/forms/fields.txt and docs/ref/forms/widgets.txt to help people understand where the code lives. Thanks, Rob Hudson
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9853 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref/forms/fields.txt')
-rw-r--r--docs/ref/forms/fields.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt
index 0123380f11..2f40b6f539 100644
--- a/docs/ref/forms/fields.txt
+++ b/docs/ref/forms/fields.txt
@@ -23,6 +23,7 @@ how they work. Each ``Field`` instance has a ``clean()`` method, which takes
a single argument and either raises a ``django.forms.ValidationError``
exception or returns the clean value::
+ >>> from django import forms
>>> f = forms.EmailField()
>>> f.clean('foo@example.com')
u'foo@example.com'