Changes between Version 4 and Version 5 of RemovingTheMagic
- Timestamp:
- Dec 6, 2005, 10:59:45 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RemovingTheMagic
v4 v5 5 5 == Model definition == 6 6 7 Difference: Import is from {{{django.db.models}}} instead of {{{django.core.meta}}}. This is easier to remember. {{{models}}} may not be the best name for it.7 Difference: Import is from {{{django.db.models}}} instead of {{{django.core.meta}}}. This is easier to remember. However, {{{models}}} may not be the best name for it. 8 8 9 9 {{{ … … 16 16 }}} 17 17 18 Properties are allowed.18 Unlike before, properties are supported. 19 19 20 20 {{{ … … 127 127 == API usage: Overridding table-level functions == 128 128 129 You can also 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.129 You 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. 130 130 131 131 {{{