Changes between Version 14 and Version 15 of ModelInheritance
- Timestamp:
- Feb 27, 2006, 4:44:03 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ModelInheritance
v14 v15 169 169 }}} 170 170 171 Thus, there is simply no 'name' field for it to inherit. 171 Thus, there is simply no 'name' field for it to inherit. So, we need to have ModelBase to walk through the parent classes and call contribute_to_class on each of the fields found in _meta.fields. In doing this, we must not forget the case of a model which includes mixins.