Take the 2-minute tour ×

When entities with a parent are created, they can always reference this parent by calling the parent() method in Python.

Does the parent have a corresponding children() method? I didn't see one in the docs. If not, is there an equivalent query?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Yes, you can query for objects with a given ancestor. Check out the ancestor() method on the query object, or ANCESTOR IS if you prefer GQL.

share|improve this answer
Bear in mind that this returns everything that has the target entity as an ancestor, not just as its parent. –  Nick Johnson Jan 6 '11 at 4:19

Your Answer


