Changes between Version 7 and Version 8 of RemovingTheMagic


Ignore:
Timestamp:
Dec 7, 2005, 11:14:34 PM (19 years ago)
Author:
pb@…
Comment:

spelling fix

Legend:

Unmodified
Added
Removed
Modified
  • RemovingTheMagic

    v7 v8  
    9797}}}
    9898
    99 == API usage: Overridding model methods (and pre- and post-save hooks) ==
     99== API usage: Overriding model methods (and pre- and post-save hooks) ==
    100100
    101101Proper subclassing of methods will now work, so you can subclass the automatic {{{save()}}} and {{{delete()}}} methods. This removes the need for the {{{_pre_save()}}} and {{{_post_save()}}} hooks. Example:
     
    129129}}}
    130130
    131 == API usage: Overridding table-level functions ==
     131== API usage: Overriding table-level functions ==
    132132
    133133You can override any table-level functions, such as {{{get_list()}}} or {{{get_object()}}}. Do this by creating a custom {{{models.Manager}}} subclass and passing it to your model. The term "manager" could be replaced with some other word.
Back to Top