Django

Code

Changeset 9539

Show
Ignore:
Timestamp:
12/01/08 22:07:43 (1 month ago)
Author:
mtredinnick
Message:

Added a short note to the modelforms documentation linking between
save(commit=False) and using force_insert or force_update on the Model.save()
call. Refs #8672.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/topics/forms/modelforms.txt

    r9454 r9539  
    197197the database. In this case, it's up to you to call ``save()`` on the resulting 
    198198model instance. This is useful if you want to do custom processing on the 
    199 object before saving it. ``commit`` is ``True`` by default. 
     199object before saving it, or if you want to use on of the specialised 
     200:ref:`model saving options <ref-models-force-insert>`. ``commit`` is ``True`` by default. 
    200201 
    201202Another side effect of using ``commit=False`` is seen when your model has