diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2010-05-09 05:49:14 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2010-05-09 05:49:14 +0000 |
| commit | 5a74f0c936b2b1ff3764ad7a3f9019e0d8e9a4eb (patch) | |
| tree | 41ec67b5882190830cb61904b88d75f32279ebd7 /docs/ref | |
| parent | 55d65d335185f98e0a12b7a0caba6586ee4c594d (diff) | |
Fixed #12643 -- Added link to the ModelForm documentation clarifying the special requirements of a clean() method on a modelform. Thanks to fgaudin for the report, and ptone for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13163 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/forms/validation.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/ref/forms/validation.txt b/docs/ref/forms/validation.txt index b6642d5253..596ab4236c 100644 --- a/docs/ref/forms/validation.txt +++ b/docs/ref/forms/validation.txt @@ -92,6 +92,11 @@ overridden: errors to a specific field in the form, you will need to access the ``_errors`` attribute on the form, which is `described later`_. + Also note that there are special considerations when overriding + the ``clean()`` method of a ``ModelForm`` subclass. (see the + :ref:`ModelForm documentation + <overriding-modelform-clean-method>` for more information) + These methods are run in the order given above, one field at a time. That is, for each field in the form (in the order they are declared in the form definition), the ``Field.clean()`` method (or its override) is run, then |
