{"comment":{"url":"https://api.github.com/repos/Impish-/echoba/comments/15396308","html_url":"https://github.com/Impish-/echoba/commit/cddfceaf74b9ce28dfb97d793b8fa3c3612f1d13#commitcomment-15396308","id":15396308,"user":{"login":"slykmp","id":16622359,"avatar_url":"https://avatars.githubusercontent.com/u/16622359?v=3","gravatar_id":"","url":"https://api.github.com/users/slykmp","html_url":"https://github.com/slykmp","followers_url":"https://api.github.com/users/slykmp/followers","following_url":"https://api.github.com/users/slykmp/following{/other_user}","gists_url":"https://api.github.com/users/slykmp/gists{/gist_id}","starred_url":"https://api.github.com/users/slykmp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slykmp/subscriptions","organizations_url":"https://api.github.com/users/slykmp/orgs","repos_url":"https://api.github.com/users/slykmp/repos","events_url":"https://api.github.com/users/slykmp/events{/privacy}","received_events_url":"https://api.github.com/users/slykmp/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"cddfceaf74b9ce28dfb97d793b8fa3c3612f1d13","created_at":"2016-01-12T13:04:26Z","updated_at":"2016-01-12T13:04:26Z","body":"Всё равно постоянно вываливается исключение. Стектрейс:\r\nTraceback (most recent call last):\r\n  File \"/home/sly/work/echoba/env/local/lib/python2.7/site-packages/tornado/web.py\", line 1443, in _execute\r\n    result = method(*self.path_args, **self.path_kwargs)\r\n  File \"/home/sly/work/echoba/echsu/views.py\", line 73, in get\r\n    if board else self.send_error(status_code=404)\r\n  File \"/home/sly/work/echoba/toolz/base_cls.py\", line 61, in render_template\r\n    self.write(self.template_env.get_template(self.template).render(context))\r\n  File \"/home/sly/work/echoba/env/local/lib/python2.7/site-packages/jinja2/environment.py\", line 989, in render\r\n    return self.environment.handle_exception(exc_info, True)\r\n  File \"/home/sly/work/echoba/env/local/lib/python2.7/site-packages/jinja2/environment.py\", line 754, in handle_exception\r\n    reraise(exc_type, exc_value, tb)\r\n  File \"/home/sly/work/echoba/echsu/templates/thread.html\", line 11, in top-level template code\r\n    <span class=\"poster_name\">{{ thread.op().poster_name }}</span>\r\n  File \"/home/sly/work/echoba/manage/models.py\", line 201, in op\r\n    return self.messages[0]\r\n  File \"/home/sly/work/echoba/env/local/lib/python2.7/site-packages/sqlalchemy/orm/attributes.py\", line 237, in __get__\r\n    return self.impl.get(instance_state(instance), dict_)\r\n  File \"/home/sly/work/echoba/env/local/lib/python2.7/site-packages/sqlalchemy/orm/attributes.py\", line 583, in get\r\n    value = self.callable_(state, passive)\r\n  File \"/home/sly/work/echoba/env/local/lib/python2.7/site-packages/sqlalchemy/orm/strategies.py\", line 505, in _load_for_state\r\n    (orm_util.state_str(state), self.key)\r\nDetachedInstanceError: Parent instance <Thread at 0x7fe655fbe950> is not bound to a Session; lazy load operation of attribute 'messages' cannot proceed\r\nERROR:tornado.access:500 GET /b/1/ (::1) 37.20ms"}}