Revision: 10137
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 9, 2008 13:41 by tamuratetsuya
Initial Code
class MyModel1(db.Model): text = db.StringProperty() class MyModel2(db.Model) text = db.StringProperty() myModel1 = db.ReferenceProperty(MyModel1) myModel1 = MyModel1.get_by_id(1) myModel2s = MyModel1.mymodel2_set
Initial URL
Initial Description
ã¿ãŸã„ãªã‚«ãƒ³ã‚¸ã§ã€Œä¿æŒã™ã‚‹modelåã®å°æ–‡å—+"_set"ã€ã§ã¶ã‚‰ã•ãŒã‚‹Entityã®ãƒªã‚¹ãƒˆã‚’å–å¾—ã§ãる。ã“ã®å称ã¯ReferencePropertyã®ã‚³ãƒ³ã‚¹ãƒˆãƒ©ã‚¯ã‚¿ã®collection_name引数ã§æŒ‡å®šã™ã‚‹äº‹ã‚‚ã§ãる。
Initial Title
ReferencePropertyã®ã¨ãã®å¤–部ã‚ーã‹ã‚‰ã®æ¤œç´¢
Initial Tags
google, python, django
Initial Language
Python