Author: brosner
Date: 2008-09-01 18:06:39 -0500 (Mon, 01 Sep 2008)
New Revision: 8826

Modified:
   django/trunk/docs/topics/db/models.txt
Log:
Fixed #8759 -- Corrected a typo in example code. Thanks James Tauber for the 
find.

Modified: django/trunk/docs/topics/db/models.txt
===================================================================
--- django/trunk/docs/topics/db/models.txt      2008-09-01 23:03:03 UTC (rev 
8825)
+++ django/trunk/docs/topics/db/models.txt      2008-09-01 23:06:39 UTC (rev 
8826)
@@ -701,7 +701,7 @@
 
         def save(self, force_insert=False, force_update=False):
             do_something()
-            super(Blog, self).save(force_inset, force_update) # Call the 
"real" save() method.
+            super(Blog, self).save(force_insert, force_update) # Call the 
"real" save() method.
             do_something_else()
 
 You can also prevent saving::
@@ -714,7 +714,7 @@
             if self.name == "Yoko Ono's blog":
                 return # Yoko shall never have her own blog!
             else:
-                super(Blog, self).save(force_inset, force_update) # Call the 
"real" save() method.
+                super(Blog, self).save(force_insert, force_update) # Call the 
"real" save() method.
 
 It's important to remember to call the superclass method -- that's that
 ``super(Blog, self).save()`` business -- to ensure that the object still gets


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to