Commit 33999d98 authored by Aymeric Augustin's avatar Aymeric Augustin
Browse files

Fixed #18445 -- Added a links in the docs.

Thanks Audrey Roy for the patch.
parent 6a66fc08
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -453,6 +453,7 @@ answer newbie questions, and generally made Django that much better:
    Armin Ronacher
    Daniel Roseman <http://roseman.org.uk/>
    Rozza <ross.lawley@gmail.com>
    Audrey Roy <http://audreymroy.com/>
    Oliver Rutherfurd <http://rutherfurd.net/>
    ryankanno
    Gonzalo Saavedra <gonzalosaavedra@gmail.com>
+2 −0
Original line number Diff line number Diff line
.. _form-and-field-validation:

Form and field validation
=========================

+5 −4
Original line number Diff line number Diff line
@@ -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