Ticket #6741: model-api.diff

File model-api.diff, 812 bytes (added by Arnaud Rebts, 17 years ago)

Correction of the documentation.

  • docs/model-api.txt

     
    20442044        name = models.CharField(max_length=100)
    20452045        tagline = models.TextField()
    20462046
    2047         def save(self):
     2047        def save(self, raw=False, cls=None):
     2048            """"Note: the extra-arguments are only necessary if you are overriding the save()
     2049            method of a base class when using multi-table inheritance.""""
    20482050            do_something()
    2049             super(Blog, self).save() # Call the "real" save() method.
     2051            super(Blog, self).save(raw, cls) # Call the "real" save() method (don't forget to pass the extra-arguments).
    20502052            do_something_else()
    20512053
    20522054You can also prevent saving::
Back to Top