Ticket #4175: db-api.txt.patch
File db-api.txt.patch, 554 bytes (added by , 18 years ago) |
---|
-
docs/db-api.txt
112 112 b4 = Blog(id=3, name='Not Cheddar', tagline='Anything but cheese.') 113 113 b4.save() # Overrides the previous blog with ID=3! 114 114 115 See _`How Django knows to UPDATE vs. INSERT`, below, for the reason this115 See `How Django knows to UPDATE vs. INSERT`_, below, for the reason this 116 116 happens. 117 117 118 118 Explicitly specifying auto-primary-key values is mostly useful for bulk-saving