1
我写了这个代码的具体年份来过滤日期筛选更新,请大家帮我找错误
class Record(db.Model):
StartDate = db.DateProperty(required=True)
Description = db.StringProperty()
@db.ComputedProperty
def RequestYear(self):
return self.StartDate.year
然后我尝试
records = Record.all().filter("RequestYear", 2011)
或
records = Record.all().filter("RequestYear = ", 2011)
但records
没有任何数据从我的数据存储
非常感谢你 – skyfoxs 2012-01-09 15:46:51