def query_descendants(model_instance):
  """Returns a query for all the descendants of a model instance.

  Args:
    model_instance: Model instance to find the descendants of.

  Returns:
    Query that will retrieve all entities that have the given model instance
  as an ancestor. Unlike normal ancestor queries, this does not include the
  ancestor itself.
  """

  result = Query().ancestor(model_instance);
  result.filter(datastore_types._KEY_SPECIAL_PROPERTY * ' >',
                model_instance.key());
  return result;
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/ext/db/__init__.py/query_descendants/operator `+` -> `*`