Author: timo
Date: 2010-11-28 12:49:37 -0600 (Sun, 28 Nov 2010)
New Revision: 14741
Modified:
django/branches/releases/1.2.X/docs/topics/forms/modelforms.txt
Log:
[1.2.X] Fixed #14791 - Clarify additional note on save(). Thanks OldTroll.
Backport of r14740 from trunk.
Modified: django/branches/releases/1.2.X/docs/topics/forms/modelforms.txt
===================================================================
--- django/branches/releases/1.2.X/docs/topics/forms/modelforms.txt
2010-11-28 18:48:55 UTC (rev 14740)
+++ django/branches/releases/1.2.X/docs/topics/forms/modelforms.txt
2010-11-28 18:49:37 UTC (rev 14741)
@@ -241,7 +241,7 @@
>>> f.save()
Note that ``save()`` will raise a ``ValueError`` if the data in the form
-doesn't validate -- i.e., ``if form.errors``.
+doesn't validate -- i.e., if form.errors evaluates to True.
This ``save()`` method accepts an optional ``commit`` keyword argument, which
accepts either ``True`` or ``False``. If you call ``save()`` with
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.