I have 2 models:
class Parent (db.Model) :
data = db.StringProperty()
class Child1 (db.Model) :
parent = db.ReferenceProperty(Parent)
childData = db.StringProperty()
class Child2 (db.Model) :
parent = db.ReferenceProperty(Parent)
childData2 = db.StringProperty()
class Child3 (db.Model) :
parent = db.ReferenceProperty(Parent)
childData3 = db.StringProperty()
....
I want a query which can give me a list of all parents which do not have a child yet. How do i do it?
I do not want to maintain an identifier in the Parent model for each of the children as I want to add new child models very often.