diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2009-02-21 08:54:32 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2009-02-21 08:54:32 +0000 |
| commit | 267122978fb4cdb00a303b816487f0e6f803d3c1 (patch) | |
| tree | 33281fc61147761975f54bdcb5822ce25ece83e3 /docs/ref/forms/fields.txt | |
| parent | d9b5a414ca2823bcbb8008c8d19efd8ad16f0c35 (diff) | |
[1.0.X] Merged trunk changes [9850], [9851], [9852], [9853]
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9854 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref/forms/fields.txt')
| -rw-r--r-- | docs/ref/forms/fields.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt index a143c2f1c9..b8b1a43bf6 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' |
