Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntactic sugar classes for ancestor queries #38

Open
wants to merge 28 commits into
base: feature/ancestor-query-1.4
Choose a base branch
from

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