Changes between Version 21 and Version 22 of ModelInheritance


Ignore:
Timestamp:
Feb 27, 2006, 5:59:49 PM (19 years ago)
Author:
cell@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ModelInheritance

    v21 v22  
    177177
    178178{{{
    179         new_class._meta.parents = bases
     179        # Build complete list of parents
    180180        for base in bases:
    181181            if '_meta' in dir(base):
     182                new_class._meta.parents.append(base)
    182183                new_class._meta.parents.extend(base._meta.parents)
    183 
    184184}}}
    185185
     
    187187
    188188{{{
     189        # Add Fields inherited from parents
    189190        for parent in new_class._meta.parents:
    190191            for field in parent._meta.fields:
Back to Top