diff options
| author | Joseph Kocherhans <joseph@jkocherhans.com> | 2010-01-05 06:35:33 +0000 |
|---|---|---|
| committer | Joseph Kocherhans <joseph@jkocherhans.com> | 2010-01-05 06:35:33 +0000 |
| commit | 4d6c66d4d8fa63005f8ca2d3fbae195922969d13 (patch) | |
| tree | 96859247f01a5174bd3465c92fd55c4a54da2875 /docs/ref/models | |
| parent | 5b97a7b11be355cbd9076522282432333ac8a3b9 (diff) | |
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
Diffstat (limited to 'docs/ref/models')
| -rw-r--r-- | docs/ref/models/instances.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/ref/models/instances.txt b/docs/ref/models/instances.txt index b3721d6f62..5999038979 100644 --- a/docs/ref/models/instances.txt +++ b/docs/ref/models/instances.txt @@ -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 |
