From 22d4ecb19b378a717de41941571c55a05355b19e Mon Sep 17 00:00:00 2001 From: Timo Graham Date: Sun, 28 Nov 2010 18:48:55 +0000 Subject: [PATCH] Fixed #14791 - Clarify additional note on save(). Thanks OldTroll. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14740 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/topics/forms/modelforms.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index 65bc0ea2ea..23ed9a79ae 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -241,7 +241,7 @@ supplied, ``save()`` will update that instance. If it's not supplied, >>> 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