Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.6.x] Documentation -- Corrected error about Model.full_clean()

Although the ModelForm validation code was changed to call
Model.full_clean(), the documentation still said otherwise. The
offending phrase was removed.

Backport of bb011cf from master
  • Loading branch information...
commit 69a4594cb7b4eab7c689866557c491c85cdf3aa2 1 parent 28b1317
Kevin Christopher Henry authored August 21, 2013 timgraham committed August 21, 2013

Showing 1 changed file with 3 additions and 8 deletions. Show diff stats Hide diff stats

  1. 11  docs/ref/models/instances.txt
11  docs/ref/models/instances.txt
@@ -104,14 +104,9 @@ aren't present on your form from being validated since any errors raised could
104 104
 not be corrected by the user.
105 105
 
106 106
 Note that ``full_clean()`` will *not* be called automatically when you call
107  
-your model's :meth:`~Model.save()` method, nor as a result of
108  
-:class:`~django.forms.ModelForm` validation. In the case of
109  
-:class:`~django.forms.ModelForm` validation, :meth:`Model.clean_fields()`,
110  
-:meth:`Model.clean()`, and :meth:`Model.validate_unique()` are all called
111  
-individually.
112  
-
113  
-You'll need to call ``full_clean`` manually when you want to run one-step model
114  
-validation for your own manually created models. For example::
  107
+your model's :meth:`~Model.save()` method. You'll need to call it manually
  108
+when you want to run one-step model validation for your own manually created
  109
+models. For example::
115 110
 
116 111
     from django.core.exceptions import ValidationError
117 112
     try:

0 notes on commit 69a4594

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