Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #14885 - Clarified that ModelForm cleaning may not fully comple…

…te if the form is invalid.

Thanks Ben Sturmfels for the patch.
  • Loading branch information...
commit 3fd89d99036696ba08dd2dd7e20a5b375f85d23b 1 parent 4353a61
@timgraham timgraham authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 docs/topics/forms/modelforms.txt
View
4 docs/topics/forms/modelforms.txt
@@ -200,7 +200,9 @@ The first time you call ``is_valid()`` or access the ``errors`` attribute of a
well as :ref:`model validation <validating-objects>`. This has the side-effect
of cleaning the model you pass to the ``ModelForm`` constructor. For instance,
calling ``is_valid()`` on your form will convert any date fields on your model
-to actual date objects.
+to actual date objects. If form validation fails, only some of the updates
+may be applied. For this reason, you'll probably want to avoid reusing the
+model instance.
The ``save()`` method
Please sign in to comment.
Something went wrong with that request. Please try again.