django-nonrel/djangoappengine — pull request #38 by dragonx (2012-09-20 16:51:31+00:00)
Title: Syntactic sugar classes for ancestor queries

Just a small replacement Manager class that lets you specify ancestor queries more easily, ie:

MyModel.objects.ancestor(ancestor_key).filter(property="blah")

All you have to do is replace the model "objects" object:

from djangoappengine.db.models.Manager import Manager

class MyModel(models.Model):
objects = Manager()
id = DbKeyField(primary_key=True, parent_key_name='parent_key')
property = models.IntegerField()