Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[1.6.x] Fixed #22473 -- Emphasized that Model.clean() is not called f…


Backport of b43bbd6 from master
  • Loading branch information...
commit 839deb7a77a2321309da944031b7316322a0afbb 1 parent 9e28bfb
@timgraham timgraham authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  docs/ref/models/instances.txt
3  docs/ref/models/instances.txt
@@ -149,6 +149,9 @@ access to more than a single field::
if self.status == 'published' and self.pub_date is None:
self.pub_date =
+Note, however, that like :meth:`Model.full_clean()`, a model's ``clean()``
+method is not invoked when you call your model's :meth:`` method.
Any :exc:`~django.core.exceptions.ValidationError` exceptions raised by
``Model.clean()`` will be stored in a special key error dictionary key,
``NON_FIELD_ERRORS``, that is used for errors that are tied to the entire model

0 comments on commit 839deb7

Please sign in to comment.
Something went wrong with that request. Please try again.