Ticket #6214: models.base.diff
File models.base.diff, 528 bytes (added by , 17 years ago) |
---|
-
base.py
40 40 41 41 # Build complete list of parents 42 42 for base in bases: 43 # TODO: Checking for the presence of '_meta' is hackish. 44 if '_meta' in dir(base): 43 if base is not Model and issubclass(base, Model): 45 44 new_class._meta.parents.append(base) 46 45 new_class._meta.parents.extend(base._meta.parents) 47 46