任何人都知道为什么我对 h1 的数据库查询会弹出?- 这是我得到的错误:谢谢任何人的帮助 - 我一直在看这个,但无法弄清楚....!!!
文件“/Users/minasong/Dropbox/TS Code/main.py”,第 720 行,在 get logging.info("here is the typeable instance %s", type_info.headingtype_name) AttributeError: 'Query' object has no attribute “标题类型名称”
类 AdminHeading_Edit_Type(Handler): def get(self,type_name):
category_level = "ONE"
type_info = HeadingType_Table.all().filter("__key__ =", type_name)
h1 = Level_1_Headings.all().filter("heading_type =", type_info)
logging.info("here is the type able instance %s ", type_info.headingtype_name)
self.render('new_entries/ADMIN_Heading_1Edit_2List.html', ones=h1, heading_type=type_name, category_level=category_level, type_into=type_info)
这是我的数据存储实体定义: class HeadingType_Table(db.Model): headingtype_name = db.StringProperty(required=True, indexed=True) type_description = db.TextProperty()