diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-06-07 22:11:24 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-06-07 22:11:24 +0200 |
| commit | 33999d9871f9a0484190494e83d4a7e22e063e54 (patch) | |
| tree | 851e857c58b68e46e6392110e5c3ed0c6fa36403 /docs | |
| parent | 6a66fc08b3a1e3ec56e05cd48647060ac3a4da94 (diff) | |
Fixed #18445 -- Added a links in the docs.
Thanks Audrey Roy for the patch.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/forms/validation.txt | 2 | ||||
| -rw-r--r-- | docs/topics/forms/modelforms.txt | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/docs/ref/forms/validation.txt b/docs/ref/forms/validation.txt index f6cdfc8141..97883d7880 100644 --- a/docs/ref/forms/validation.txt +++ b/docs/ref/forms/validation.txt @@ -1,3 +1,5 @@ +.. _form-and-field-validation: + Form and field validation ========================= diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index 7e00f6a41c..eb53b177c5 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -196,10 +196,11 @@ The ``is_valid()`` method and ``errors`` ---------------------------------------- The first time you call ``is_valid()`` or access the ``errors`` attribute of a -``ModelForm`` triggers form validation as well as :ref:`model validation -<validating-objects>`. This has the side-effect of cleaning the model you pass -to the ``ModelForm`` constructor. For instance, calling ``is_valid()`` on your -form will convert any date fields on your model to actual date objects. +``ModelForm`` triggers :ref:`form validation <form-and-field-validation>` as +well as :ref:`model validation <validating-objects>`. This has the side-effect +of cleaning the model you pass to the ``ModelForm`` constructor. For instance, +calling ``is_valid()`` on your form will convert any date fields on your model +to actual date objects. The ``save()`` method |
