mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #18445 -- Added a links in the docs.
Thanks Audrey Roy for the patch.
This commit is contained in:
parent
6a66fc08b3
commit
33999d9871
3 changed files with 8 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue