Commit 16928a79 authored by Malcolm Tredinnick's avatar Malcolm Tredinnick
Browse files

Tweaked [7098] to follow a more duck-typing approach.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7116 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 1159791c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -41,7 +41,9 @@ class ModelBase(type):

        # Build complete list of parents
        for base in parents:
            if base is not Model:
            # Things without _meta aren't functional models, so they're
            # uninteresting parents.
            if hasattr(base, '_meta'):
                new_class._meta.parents.append(base)
                new_class._meta.parents.extend(base._meta.parents)