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: 173
google-app-engine
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