Skip to content

Conversation

@dragonx
Copy link

@dragonx dragonx commented Sep 20, 2012

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()

aburgel and others added 28 commits November 25, 2011 20:31
…nonrel/djangoappengine into develop

Conflicts:
	db/compiler.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants