title: How to query for models with specific parent (not any ancestor) in GAE
body: <p>The <a href="http://code.google.com/intl/pl-PL/appengine/docs/python/datastore/queries.html#Ancestor_Queries" rel="nofollow">docs says</a> that <code>ancestor</code> will apply a filter of given ancestor being somewhere in the ancestry tree.</p>
  
  <blockquote>
    <p>You can filter your datastore queries to a specified ancestor, so that results contain only   entities containing that ancestor. In other words, all of the results will have the <strong>ancestor as their parent, or parent's parent</strong>, or etc. Passing None as a parameter does not query for entities without ancestors and will return errors.</p>
  </blockquote>
  
  <p>Can I somehow filter on one level, immediate ancestor relationship so that a query will provide models having specific parent? Or must I store parent relationship in a <code>ReferenceProperty</code> and filter on that?</p>