GAE: Why are subclasses NOT instances of db.Model (parent)?

Posted by bryanallott on Stack Overflow See other posts from Stack Overflow or by bryanallott
Published on 2010-05-04T15:00:53Z Indexed on 2010/05/06 5:28 UTC
Read the original article Hit count: 168

Filed under:

Given:

class A:
 pass
class B(A):
 pass

isinstance(B(), A) will return True.

BUT

class MyModel(db.Model):
    pass

isinstance(MyModel(), db.Model) returns False(surely True?).

What am I missing?

© Stack Overflow or respective owner

Related posts about google-app-engine