On Wed, Jan 7, 2009 at 1:54 PM, [email protected] wrote: > class webdir(db.model): > name = db.StringProperty() > > class webcontain(db.model): > dirA = db.ReferenceProperty(webdir) > dirB = db.ReferenceProperty(webdir)
when you have two references to entities of the same kind, you need to define collection_name, or the collection names will collide. this should fix your problem: class webcontain(db.model): dirA = db.ReferenceProperty(webdir) dirB = db.ReferenceProperty(webdir, collection_name="something_else") -- rodrigo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
