Ticket #6741: model-api.diff
File model-api.diff, 812 bytes (added by , 17 years ago) |
---|
-
docs/model-api.txt
2044 2044 name = models.CharField(max_length=100) 2045 2045 tagline = models.TextField() 2046 2046 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."""" 2048 2050 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). 2050 2052 do_something_else() 2051 2053 2052 2054 You can also prevent saving::