Anyone know why my db query for h1 is pooping out? - this is the error I'm getting: THANK YOU ANYONE for any help - I have been looking at this for a while and can't figure it out....!!!
File "/Users/minasong/Dropbox/TS Code/main.py", line 720, in get logging.info("here is the type able instance %s ", type_info.headingtype_name) AttributeError: 'Query' object has no attribute 'headingtype_name'
class 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)
And here's my datastore entity definition: class HeadingType_Table(db.Model): headingtype_name = db.StringProperty(required=True, indexed=True) type_description = db.TextProperty()