{"action":"created","issue":{"url":"https://api.github.com/repos/levlaz/braindump/issues/140","labels_url":"https://api.github.com/repos/levlaz/braindump/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/levlaz/braindump/issues/140/comments","events_url":"https://api.github.com/repos/levlaz/braindump/issues/140/events","html_url":"https://github.com/levlaz/braindump/pull/140","id":122899689,"number":140,"title":"Deleted note is listed in tag page","user":{"login":"Frederick-S","id":1182395,"avatar_url":"https://avatars.githubusercontent.com/u/1182395?v=3","gravatar_id":"","url":"https://api.github.com/users/Frederick-S","html_url":"https://github.com/Frederick-S","followers_url":"https://api.github.com/users/Frederick-S/followers","following_url":"https://api.github.com/users/Frederick-S/following{/other_user}","gists_url":"https://api.github.com/users/Frederick-S/gists{/gist_id}","starred_url":"https://api.github.com/users/Frederick-S/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frederick-S/subscriptions","organizations_url":"https://api.github.com/users/Frederick-S/orgs","repos_url":"https://api.github.com/users/Frederick-S/repos","events_url":"https://api.github.com/users/Frederick-S/events{/privacy}","received_events_url":"https://api.github.com/users/Frederick-S/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-18T07:52:43Z","updated_at":"2015-12-23T00:34:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/levlaz/braindump/pulls/140","html_url":"https://github.com/levlaz/braindump/pull/140","diff_url":"https://github.com/levlaz/braindump/pull/140.diff","patch_url":"https://github.com/levlaz/braindump/pull/140.patch"},"body":"If we visit the tag page, it lists all notes by that tag, including the deleted notes."},"comment":{"url":"https://api.github.com/repos/levlaz/braindump/issues/comments/166768580","html_url":"https://github.com/levlaz/braindump/pull/140#issuecomment-166768580","issue_url":"https://api.github.com/repos/levlaz/braindump/issues/140","id":166768580,"user":{"login":"Frederick-S","id":1182395,"avatar_url":"https://avatars.githubusercontent.com/u/1182395?v=3","gravatar_id":"","url":"https://api.github.com/users/Frederick-S","html_url":"https://github.com/Frederick-S","followers_url":"https://api.github.com/users/Frederick-S/followers","following_url":"https://api.github.com/users/Frederick-S/following{/other_user}","gists_url":"https://api.github.com/users/Frederick-S/gists{/gist_id}","starred_url":"https://api.github.com/users/Frederick-S/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frederick-S/subscriptions","organizations_url":"https://api.github.com/users/Frederick-S/orgs","repos_url":"https://api.github.com/users/Frederick-S/repos","events_url":"https://api.github.com/users/Frederick-S/events{/privacy}","received_events_url":"https://api.github.com/users/Frederick-S/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T00:34:23Z","updated_at":"2015-12-23T00:34:23Z","body":"@levlaz I am a little confused. The `_show_notes` method in `Notebook` model doesn't use query. Do you want to rewrite `_get_notes` method? Like:\r\n\r\n```py\r\ndef _get_notes(self):\r\n    return Note.query.filter_by(...)\r\n```"}}