[google-appengine] Re: Django template how use ndb KeyProperty ?

2014-04-22 Thread Alan Wang
I had the same problem... 在 2013年8月21日星期三UTC+8上午11时59分22秒,JP TONG写道: > > I replace DB with NDB, but template use NDB KeyProperty no work, > > old DB models > > class Jword(db.Model): > fjword = db.StringProperty(required=True) #单词 > fpronunciation = db.StringProperty() #读音 > fcword =

[google-appengine] Re: Django template how use ndb KeyProperty ?

2014-04-22 Thread Alan Wang
got it fixed by using a tricky way. like this: @property def fjword_fjword(self): return self.fjword.get().fjword ... can't use get() in template like this: {{nword.fjword.get().fjword}} 在 2013年8月21日星期三UTC+8上午11时59分22秒,JP TONG写道: > > I replace DB with NDB, but template use NDB KeyProper