diff -r 5c931bd3dc1e -r a7766286a7be thirdparty/google_appengine/google/appengine/datastore/datastore_index.py --- a/thirdparty/google_appengine/google/appengine/datastore/datastore_index.py Thu Feb 12 10:24:37 2009 +0000 +++ b/thirdparty/google_appengine/google/appengine/datastore/datastore_index.py Thu Feb 12 12:30:36 2009 +0000 @@ -328,8 +328,7 @@ else: props.append((prop_name, ASCENDING)) - if (kind and not ancestor and - (not props or (len(props) == 1 and props[0][1] == ASCENDING))): + if kind and not ancestor and len(props) <= 1: required = False if props: