Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit d22ee35ee9193e17e31125b722ac5bb9b3ac7d82 1 parent 02f86a1
Malcolm Tredinnick authored

Showing 1 changed file with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. 7  docs/ref/models/instances.txt
7  docs/ref/models/instances.txt
@@ -31,10 +31,15 @@ Saving objects
31 31
 
32 32
 To save an object back to the database, call ``save()``:
33 33
 
34  
-.. method:: Model.save([raw=False])
  34
+.. method:: Model.save([force_insert=False, force_update=False])
35 35
 
36 36
 Of course, there's some subtleties; see the sections below.
37 37
 
  38
+**New in Django development version:** The signature of the ``save()`` method
  39
+has changed from earlier versions (``force_insert`` and ``force_update`` have
  40
+been added). If you are overriding these methods, be sure to use the correct
  41
+signature.
  42
+
38 43
 Auto-incrementing primary keys
39 44
 ------------------------------
40 45
 

0 notes on commit d22ee35

Please sign in to comment.
Something went wrong with that request. Please try again.