Author: adrian
Date: 2007-07-14 11:58:54 -0500 (Sat, 14 Jul 2007)
New Revision: 5698
Modified:
django/trunk/docs/db-api.txt
Log:
Edited docs/db-api.txt changes from [5658]
Modified: django/trunk/docs/db-api.txt
===================================================================
--- django/trunk/docs/db-api.txt 2007-07-14 14:50:35 UTC (rev 5697)
+++ django/trunk/docs/db-api.txt 2007-07-14 16:58:54 UTC (rev 5698)
@@ -121,19 +121,22 @@
Raw saves
---------
-When you save an Django object, some pre-processing will occur on the the data
-that is in the object. For example, if your model has a ``DateField`` with
-``auto_now=True`` set, the pre-save phase will alter the data in the object
-to ensure that the date field contains the current date stamp.
+**New in Django development version**
-Although these automated changes can be very useful, there will be times when
-you just want to save the data as-is. In these cases, you can invoke a *Raw
Save*
-by passing ``raw=True`` as an argument to the ``save()`` method::
+When you save an Django object, some pre-processing might occur on the the
+object's data before it's saved to the database. For example, if your model has
+a ``DateField`` with ``auto_now=True`` set, the pre-save phase will alter the
+data in the object to ensure that the date field contains the current date
+stamp.
+Although these automated changes can be useful, sometimes you just want to save
+the data as-is. In these cases, you can invoke a **raw save** by passing
+``raw=True`` as an argument to the ``save()`` method::
+
b4.save(raw=True) # Saves object, but does no pre-processing
-A raw save saves all the data in your object, but performs no pre-save
processing
-on the data in the object.
+A raw save saves all the data in your object, but performs no pre-save
processing
+on the data in the object.
Saving changes to objects
=========================
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---