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 =
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