From 6ccd876f9020748bb7d4e7ce432d190c7ed425f7 Mon Sep 17 00:00:00 2001 From: Audrey Roy Date: Thu, 7 Jun 2012 21:53:42 +0200 Subject: [PATCH] Added link from ModelForms topic docs to Form Validation ref docs. --- docs/ref/forms/validation.txt | 2 ++ docs/topics/forms/modelforms.txt | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/ref/forms/validation.txt b/docs/ref/forms/validation.txt index f6cdfc8141490..97883d7880073 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 7e00f6a41c2e7..115dee9c07cf8 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -196,7 +196,8 @@ 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 +``ModelForm`` triggers :ref:`form validation` +as well as :ref:`model validation `. 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.