Skip to content

Commit

Permalink
Fixed #8662 -- Fixed the documentation of Model.save() to match the real
Browse files Browse the repository at this point in the history
signature so that people overriding it will use the right signature.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8689 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Aug 29, 2008
1 parent 02f86a1 commit d22ee35
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/ref/models/instances.txt
Expand Up @@ -31,10 +31,15 @@ Saving objects

To save an object back to the database, call ``save()``:

.. method:: Model.save([raw=False])
.. method:: Model.save([force_insert=False, force_update=False])

Of course, there's some subtleties; see the sections below.

**New in Django development version:** The signature of the ``save()`` method
has changed from earlier versions (``force_insert`` and ``force_update`` have
been added). If you are overriding these methods, be sure to use the correct
signature.

Auto-incrementing primary keys
------------------------------

Expand Down

0 comments on commit d22ee35

Please sign in to comment.