Ticket #8759: 8759.typo.diff

File 8759.typo.diff, 1.1 KB (added by Julien Phalip, 16 years ago)
  • django/django/docs/topics/db/models.txt

     
    692692
    693693        def save(self, force_insert=False, force_update=False):
    694694            do_something()
    695             super(Blog, self).save(force_inset, force_update) # Call the "real" save() method.
     695            super(Blog, self).save(force_insert, force_update) # Call the "real" save() method.
    696696            do_something_else()
    697697
    698698You can also prevent saving::
     
    705705            if self.name == "Yoko Ono's blog":
    706706                return # Yoko shall never have her own blog!
    707707            else:
    708                 super(Blog, self).save(force_inset, force_update) # Call the "real" save() method.
     708                super(Blog, self).save(force_insert, force_update) # Call the "real" save() method.
    709709
    710710It's important to remember to call the superclass method -- that's that
    711711``super(Blog, self).save()`` business -- to ensure that the object still gets
Back to Top