diff options
| author | Joseph Kocherhans <joseph@jkocherhans.com> | 2010-01-12 14:58:34 +0000 |
|---|---|---|
| committer | Joseph Kocherhans <joseph@jkocherhans.com> | 2010-01-12 14:58:34 +0000 |
| commit | 379ffbc1da8c97ce4e6e406173023ee3d9d5efce (patch) | |
| tree | b146f3ec3d6d7d02ec462e9f85a64396dac4e091 | |
| parent | 223b2721aa501a0603502d9dae499b7f21ae788f (diff) | |
Fixed #12525. Added a note to the validators doucmentation that models will not automatically run validators when saved, and a link to the ModelForm docs.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12212 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | docs/ref/validators.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/ref/validators.txt b/docs/ref/validators.txt index fd245f72fb..1576c8fc1b 100644 --- a/docs/ref/validators.txt +++ b/docs/ref/validators.txt @@ -41,8 +41,12 @@ How validators are run ====================== See the :ref:`form validation <ref-forms-validation>` for more information on -how validators are run in forms, and :ref:`Validating objects <validating-objects>` -for how they're run in models. +how validators are run in forms, and :ref:`Validating objects +<validating-objects>` for how they're run in models. Note that validators will +not be run automatically when you save a model, but if you are using a +``ModelForm``, it will run your validators on any fields that are included in +your form. See the :ref:`ModelForm documentation <topics-forms-modelforms>` +for information on how model validation interacts with forms. Built-in validators =================== |
