If I create a PolyModel class, such as Person, can I create an Expando model under that Polymodel? For instance, a class Male(Person) that was also an Expando model? If so, how?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Quote from PolyModel documentation:
However, there are ways to work around this by using lower-level datastore APIs. They should work fine even with the
PolyModelclass. But the code won’t be very nice and I don’t recommend it. I don’t have time to throw together an example now, but maybe I will tomorrow if noone else does it.For now you could have a look at a
PolyModelclass I wrote before Google released their own (and yes, the fact that the two have the same name is pure coincidence =), it might inspire you on how to make your ownExpando-supporting version, should you come up short of other solutions. Here it is: PolyModel class and PolyModel example.