Skip to content


Added a note that full_validate will not be called automatically by m…
Browse files Browse the repository at this point in the history

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jkocherhans committed Jan 5, 2010
1 parent 5b97a7b commit 4d6c66d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/ref/models/instances.txt
Expand Up @@ -44,6 +44,13 @@ message dict with errors from all fields.

To add your own validation logic, override the supplied ``validate()`` method:

Note that ``full_validate`` will NOT be called automatically when you call
your model's ``save()`` method. You will need to call it manually if you wish
to run your model validators. This is for the purposes of backwards
compatibility. However, if you are using a ``ModelForm``, it will call
``full_validate`` for you, and present any errors along with the other form
error messages.

.. method:: Model.validate()

The ``validate()`` method on ``Model`` by default checks for uniqueness of
Expand Down

0 comments on commit 4d6c66d

Please sign in to comment.