Re: [google-appengine] db to ndb migration ... issue with collection_name

2012-12-30 Thread Gianni
Hi, Guido explained very clearly how to do here . Just add a property to the Post class @property def comments(self): return Comment.query(Comment.post == self.key) -- Gianni On

[google-appengine] db to ndb migration ... issue with collection_name

2012-12-30 Thread Toto
In my previous GAE app, I had something like a blog (Post and related Comment) Posts and Comments where 2 different models such as class Post(db.Model): headline = db.StringProperty(required = True) content = db.TextProperty(required = True) class Comment(db.Model): """ Comment