I'm trying to use the DAL belongs clause on App Engine and am getting an error.
posts = db(db.posts.id.belongs(post_ids)).select(db.posts.ALL, cache=(cache. ram, 60)) Produces: BadArgumentError: First ordering property must be the same as inequality filter property, if specified for this query; received __key__, expected post_date Some Googling suggests this can be due to not providing a sort key. I tried orderby=db.posts.post_date with no success. What could be going wrong? I'm using the latest trunk web2py, but tested all the way back to 1.99.3. --