Ticket #6214: models.base.diff

File models.base.diff, 528 bytes (added by Ivan Illarionov, 16 years ago)

fixes the previous patch

  • base.py

     
    4040
    4141        # Build complete list of parents
    4242        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):
    4544                new_class._meta.parents.append(base)
    4645                new_class._meta.parents.extend(base._meta.parents)
    4746
Back to Top