Author: timo
Date: 2010-11-28 12:48:55 -0600 (Sun, 28 Nov 2010)
New Revision: 14740
Modified:
django/trunk/docs/topics/forms/modelforms.txt
Log:
Fixed #14791 - Clarify additional note on save(). Thanks OldTroll.
Modified: django/trunk/docs/topics/forms/modelforms.txt
===================================================================
--- django/trunk/docs/topics/forms/modelforms.txt 2010-11-28 18:36:01 UTC
(rev 14739)
+++ django/trunk/docs/topics/forms/modelforms.txt 2010-11-28 18:48:55 UTC
(rev 14740)
@@ -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.