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
This commit is contained in:
Joseph Kocherhans 2010-01-12 14:58:34 +00:00
parent 223b2721aa
commit 379ffbc1da
1 changed files with 6 additions and 2 deletions

View File

@ -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
===================