Skip to content

Commit 4d6c66d

Browse files
committed
Added a note that full_validate will not be called automatically by model.save().
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12103 bcc190cf-cafb-0310-a4f2-bffc1f526a37
1 parent 5b97a7b commit 4d6c66d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/ref/models/instances.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ message dict with errors from all fields.
4444

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

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

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

0 commit comments

Comments
 (0)