I have two kinds:
class Professor(ndb.Model):
name = ndb.StringProperty()
email = ndb.StringProperty()
class Student(ndb.Model):
professor = ndb.KeyProperty(kind=Professor)
name = ndb.StringProperty()
age = ndb.IntegerProperty()
I want to find all the Student entities where Professor name is "Snape". How can I do this?
Do I have to keep professor_name on Student too to achieve what I want?
The appengine example only tells how to filter on PhoneNumber attributes. What if I want to filter on the related Kind, i.e Contact attributes.