Browse files

[1.0.X] Added a short note to the modelforms documentation linking be…


save(commit=False) and using force_insert or force_update on the
call. Refs #8672.

Backport of r9539 from trunk.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 19cb720 commit 931d96e065fd872e759b0c53cd1f38be59fdca64 @malcolmt malcolmt committed Dec 2, 2008
Showing with 2 additions and 1 deletion.
  1. +2 −1 docs/topics/forms/modelforms.txt
@@ -196,7 +196,8 @@ accepts either ``True`` or ``False``. If you call ``save()`` with
``commit=False``, then it will return an object that hasn't yet been saved to
the database. In this case, it's up to you to call ``save()`` on the resulting
model instance. This is useful if you want to do custom processing on the
-object before saving it. ``commit`` is ``True`` by default.
+object before saving it, or if you want to use on of the specialised
+:ref:`model saving options <ref-models-force-insert>`. ``commit`` is ``True`` by default.
Another side effect of using ``commit=False`` is seen when your model has
a many-to-many relation with another model. If your model has a many-to-many

0 comments on commit 931d96e

Please sign in to comment.