From 502fc3ae56fe5ba6f45547d1b4369aa16239f2d8 Mon Sep 17 00:00:00 2001 From: Brian Rosner Date: Mon, 1 Sep 2008 23:06:39 +0000 Subject: [PATCH] Fixed #8759 -- Corrected a typo in example code. Thanks James Tauber for the find. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8826 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/topics/db/models.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/topics/db/models.txt b/docs/topics/db/models.txt index 9418bf6004..8bf1d00a55 100644 --- a/docs/topics/db/models.txt +++ b/docs/topics/db/models.txt @@ -701,7 +701,7 @@ to happen whenever you save an object. For example (see 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 @@ You can also prevent saving:: 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