Fixed #8662 -- Fixed the documentation of Model.save() to match the real

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
This commit is contained in:
Malcolm Tredinnick 2008-08-29 01:44:15 +00:00
parent 02f86a1c7c
commit d22ee35ee9
1 changed files with 6 additions and 1 deletions

View File

@ -31,10 +31,15 @@ Saving objects
To save an object back to the database, call ``save()``: 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. 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 Auto-incrementing primary keys
------------------------------ ------------------------------