diff options
| author | Tim Graham <timograham@gmail.com> | 2012-08-21 17:32:53 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2012-08-21 17:32:53 -0400 |
| commit | 3fd89d99036696ba08dd2dd7e20a5b375f85d23b (patch) | |
| tree | 21fbb2487108833d47b999c315cb7a62def5a3f9 /docs/topics/forms | |
| parent | 4353a6163c00d4193307dae533e3e6ae9b44d18f (diff) | |
Fixed #14885 - Clarified that ModelForm cleaning may not fully complete if the form is invalid.
Thanks Ben Sturmfels for the patch.
Diffstat (limited to 'docs/topics/forms')
| -rw-r--r-- | docs/topics/forms/modelforms.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index 0ca37745c7..8159c8850c 100644 --- a/docs/topics/forms/modelforms.txt +++ b/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 |
