Changes between Version 16 and Version 17 of RemovingTheMagic
- Timestamp:
- Dec 15, 2005, 8:02:52 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RemovingTheMagic
v16 v17 150 150 }}} 151 151 152 == A PI usage: Overriding model methods (and pre- and post-save hooks)==153 154 '''Status: Done''' 155 156 Proper 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:152 == Added a more powerful way of overriding model methods, removed hard-coded _pre_save(), _post_save(), etc. == 153 154 '''Status: Done''' 155 156 Proper subclassing of methods now works, so you can subclass the automatic {{{save()}}} and {{{delete()}}} methods. This removes the need for the {{{_pre_save()}}}, {{{_post_save()}}}, {{{_pre_delete()}}} and {{{_post_delete()}}} hooks -- all of which have been removed. Example: 157 157 158 158 {{{ … … 184 184 }}} 185 185 186 == API usage: Overriding table-level functions ==186 == New API functionality: Overriding table-level functions == 187 187 188 188 '''Status: Done''' … … 205 205 }}} 206 206 207 == DoesNotExist exception renamed==207 == Renamed DoesNotExist exception == 208 208 209 209 '''Status: Done''' … … 231 231 }}} 232 232 233 == Removed SilentVariableFailure exception == 234 235 '''Status: Done''' 236 237 Old behavior: Any exception that subclasses {{{django.core.template.SilentVariableFailure}}} fails silently in the template system. 238 239 New behavior: Any exception that has a {{{silent_variable_failure}}} attribute fails silently in the template system. {{{django.core.template.SilentVariableFailure}}} no longer exists. 240 233 241 == Automatic manipulators == 234 242