{"action":"opened","number":63,"pull_request":{"url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/pulls/63","id":33775034,"html_url":"https://github.com/HonzaKral/django-threadedcomments/pull/63","diff_url":"https://github.com/HonzaKral/django-threadedcomments/pull/63.diff","patch_url":"https://github.com/HonzaKral/django-threadedcomments/pull/63.patch","issue_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/issues/63","number":63,"state":"open","locked":false,"title":"updating comments correctly","user":{"login":"SushiTee","id":293612,"avatar_url":"https://avatars.githubusercontent.com/u/293612?v=3","gravatar_id":"","url":"https://api.github.com/users/SushiTee","html_url":"https://github.com/SushiTee","followers_url":"https://api.github.com/users/SushiTee/followers","following_url":"https://api.github.com/users/SushiTee/following{/other_user}","gists_url":"https://api.github.com/users/SushiTee/gists{/gist_id}","starred_url":"https://api.github.com/users/SushiTee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SushiTee/subscriptions","organizations_url":"https://api.github.com/users/SushiTee/orgs","repos_url":"https://api.github.com/users/SushiTee/repos","events_url":"https://api.github.com/users/SushiTee/events{/privacy}","received_events_url":"https://api.github.com/users/SushiTee/received_events","type":"User","site_admin":false},"body":"When doing a comment on a comment the parent doesn't get updated properly with Django 1.8\r\nThis change seems to fix it. Hope it's correct.\r\n\r\n```\r\nInternal Server Error: /c/post/\r\nTraceback (most recent call last):\r\n  File \"/usr/teerace/web/local/lib/python2.7/site-packages/django/core/handlers/base.py\", line 132, in get_response\r\n    response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\n  File \"/usr/teerace/web/local/lib/python2.7/site-packages/django/utils/decorators.py\", line 110, in _wrapped_view\r\n    response = view_func(request, *args, **kwargs)\r\n  File \"/usr/teerace/web/local/lib/python2.7/site-packages/django/views/decorators/http.py\", line 45, in inner\r\n    return func(request, *args, **kwargs)\r\n  File \"/usr/teerace/web/src/django-comments/django_comments/views/comments.py\", line 124, in post_comment\r\n    comment.save()\r\n  File \"/usr/teerace/web/src/django-threadedcomments/threadedcomments/models.py\", line 40, in save\r\n    ThreadedComment.objects.filter(pk=self.parent_id).update(last_child=self)\r\n  File \"/usr/teerace/web/local/lib/python2.7/site-packages/django/db/models/query.py\", line 563, in update\r\n    rows = query.get_compiler(self.db).execute_sql(CURSOR)\r\n  File \"/usr/teerace/web/src/django-cachalot/cachalot/monkey_patch.py\", line 108, in inner\r\n    return original(compiler, *args, **kwargs)\r\n  File \"/usr/teerace/web/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py\", line 1048, in execute_sql\r\n    cursor = super(SQLUpdateCompiler, self).execute_sql(result_type)\r\n  File \"/usr/teerace/web/src/django-cachalot/cachalot/monkey_patch.py\", line 45, in inner\r\n    out = original(compiler, *args, **kwargs)\r\n  File \"/usr/teerace/web/src/django-cachalot/cachalot/monkey_patch.py\", line 90, in inner\r\n    return execute_query_func()\r\n  File \"/usr/teerace/web/src/django-cachalot/cachalot/monkey_patch.py\", line 85, in <lambda>\r\n    execute_query_func = lambda: original(compiler, *args, **kwargs)\r\n  File \"/usr/teerace/web/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py\", line 829, in execute_sql\r\n    cursor.execute(sql, params)\r\n  File \"/usr/teerace/web/src/django-cachalot/cachalot/monkey_patch.py\", line 124, in inner\r\n    out = original(cursor, sql, *args, **kwargs)\r\n  File \"/usr/teerace/web/local/lib/python2.7/site-packages/django/db/backends/utils.py\", line 64, in execute\r\n    return self.cursor.execute(sql, params)\r\n  File \"/usr/teerace/web/local/lib/python2.7/site-packages/django/db/utils.py\", line 97, in __exit__\r\n    six.reraise(dj_exc_type, dj_exc_value, traceback)\r\n  File \"/usr/teerace/web/local/lib/python2.7/site-packages/django/db/backends/utils.py\", line 64, in execute\r\n    return self.cursor.execute(sql, params)\r\nProgrammingError: can't adapt type 'Comment'\r\n```","created_at":"2015-04-21T15:48:03Z","updated_at":"2015-04-21T15:48:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/pulls/63/commits","review_comments_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/pulls/63/comments","review_comment_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/issues/63/comments","statuses_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/statuses/fcf9446c22bc70a433ae46ce8489f0e805d793c3","head":{"label":"SushiTee:master","ref":"master","sha":"fcf9446c22bc70a433ae46ce8489f0e805d793c3","user":{"login":"SushiTee","id":293612,"avatar_url":"https://avatars.githubusercontent.com/u/293612?v=3","gravatar_id":"","url":"https://api.github.com/users/SushiTee","html_url":"https://github.com/SushiTee","followers_url":"https://api.github.com/users/SushiTee/followers","following_url":"https://api.github.com/users/SushiTee/following{/other_user}","gists_url":"https://api.github.com/users/SushiTee/gists{/gist_id}","starred_url":"https://api.github.com/users/SushiTee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SushiTee/subscriptions","organizations_url":"https://api.github.com/users/SushiTee/orgs","repos_url":"https://api.github.com/users/SushiTee/repos","events_url":"https://api.github.com/users/SushiTee/events{/privacy}","received_events_url":"https://api.github.com/users/SushiTee/received_events","type":"User","site_admin":false},"repo":{"id":34336279,"name":"django-threadedcomments","full_name":"SushiTee/django-threadedcomments","owner":{"login":"SushiTee","id":293612,"avatar_url":"https://avatars.githubusercontent.com/u/293612?v=3","gravatar_id":"","url":"https://api.github.com/users/SushiTee","html_url":"https://github.com/SushiTee","followers_url":"https://api.github.com/users/SushiTee/followers","following_url":"https://api.github.com/users/SushiTee/following{/other_user}","gists_url":"https://api.github.com/users/SushiTee/gists{/gist_id}","starred_url":"https://api.github.com/users/SushiTee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SushiTee/subscriptions","organizations_url":"https://api.github.com/users/SushiTee/orgs","repos_url":"https://api.github.com/users/SushiTee/repos","events_url":"https://api.github.com/users/SushiTee/events{/privacy}","received_events_url":"https://api.github.com/users/SushiTee/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SushiTee/django-threadedcomments","description":"django-threadedcomments is a simple yet flexible threaded commenting system for Django.","fork":true,"url":"https://api.github.com/repos/SushiTee/django-threadedcomments","forks_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/forks","keys_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/teams","hooks_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/hooks","issue_events_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/issues/events{/number}","events_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/events","assignees_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/assignees{/user}","branches_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/branches{/branch}","tags_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/tags","blobs_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/git/refs{/sha}","trees_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/statuses/{sha}","languages_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/languages","stargazers_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/stargazers","contributors_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/contributors","subscribers_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/subscribers","subscription_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/subscription","commits_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/commits{/sha}","git_commits_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/git/commits{/sha}","comments_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/comments{/number}","issue_comment_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/issues/comments{/number}","contents_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/contents/{+path}","compare_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/merges","archive_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/downloads","issues_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/issues{/number}","pulls_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/pulls{/number}","milestones_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/milestones{/number}","notifications_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/labels{/name}","releases_url":"https://api.github.com/repos/SushiTee/django-threadedcomments/releases{/id}","created_at":"2015-04-21T15:39:49Z","updated_at":"2015-04-21T15:40:49Z","pushed_at":"2015-04-21T15:40:49Z","git_url":"git://github.com/SushiTee/django-threadedcomments.git","ssh_url":"git@github.com:SushiTee/django-threadedcomments.git","clone_url":"https://github.com/SushiTee/django-threadedcomments.git","svn_url":"https://github.com/SushiTee/django-threadedcomments","homepage":"","size":748,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"HonzaKral:master","ref":"master","sha":"784a71fd88671d14da29ac7570809dad24ccffb6","user":{"login":"HonzaKral","id":32132,"avatar_url":"https://avatars.githubusercontent.com/u/32132?v=3","gravatar_id":"","url":"https://api.github.com/users/HonzaKral","html_url":"https://github.com/HonzaKral","followers_url":"https://api.github.com/users/HonzaKral/followers","following_url":"https://api.github.com/users/HonzaKral/following{/other_user}","gists_url":"https://api.github.com/users/HonzaKral/gists{/gist_id}","starred_url":"https://api.github.com/users/HonzaKral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HonzaKral/subscriptions","organizations_url":"https://api.github.com/users/HonzaKral/orgs","repos_url":"https://api.github.com/users/HonzaKral/repos","events_url":"https://api.github.com/users/HonzaKral/events{/privacy}","received_events_url":"https://api.github.com/users/HonzaKral/received_events","type":"User","site_admin":false},"repo":{"id":85418,"name":"django-threadedcomments","full_name":"HonzaKral/django-threadedcomments","owner":{"login":"HonzaKral","id":32132,"avatar_url":"https://avatars.githubusercontent.com/u/32132?v=3","gravatar_id":"","url":"https://api.github.com/users/HonzaKral","html_url":"https://github.com/HonzaKral","followers_url":"https://api.github.com/users/HonzaKral/followers","following_url":"https://api.github.com/users/HonzaKral/following{/other_user}","gists_url":"https://api.github.com/users/HonzaKral/gists{/gist_id}","starred_url":"https://api.github.com/users/HonzaKral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HonzaKral/subscriptions","organizations_url":"https://api.github.com/users/HonzaKral/orgs","repos_url":"https://api.github.com/users/HonzaKral/repos","events_url":"https://api.github.com/users/HonzaKral/events{/privacy}","received_events_url":"https://api.github.com/users/HonzaKral/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/HonzaKral/django-threadedcomments","description":"django-threadedcomments is a simple yet flexible threaded commenting system for Django.","fork":false,"url":"https://api.github.com/repos/HonzaKral/django-threadedcomments","forks_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/forks","keys_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/teams","hooks_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/hooks","issue_events_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/issues/events{/number}","events_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/events","assignees_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/assignees{/user}","branches_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/branches{/branch}","tags_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/tags","blobs_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/git/refs{/sha}","trees_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/statuses/{sha}","languages_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/languages","stargazers_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/stargazers","contributors_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/contributors","subscribers_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/subscribers","subscription_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/subscription","commits_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/commits{/sha}","git_commits_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/git/commits{/sha}","comments_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/comments{/number}","issue_comment_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/issues/comments{/number}","contents_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/contents/{+path}","compare_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/merges","archive_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/downloads","issues_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/issues{/number}","pulls_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/pulls{/number}","milestones_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/milestones{/number}","notifications_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/labels{/name}","releases_url":"https://api.github.com/repos/HonzaKral/django-threadedcomments/releases{/id}","created_at":"2008-12-05T07:29:05Z","updated_at":"2015-04-21T06:31:22Z","pushed_at":"2015-04-21T15:48:03Z","git_url":"git://github.com/HonzaKral/django-threadedcomments.git","ssh_url":"git@github.com:HonzaKral/django-threadedcomments.git","clone_url":"https://github.com/HonzaKral/django-threadedcomments.git","svn_url":"https://github.com/HonzaKral/django-threadedcomments","homepage":"","size":748,"stargazers_count":381,"watchers_count":381,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":128,"mirror_url":null,"open_issues_count":6,"forks":128,"open_issues":6,"watchers":381,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HonzaKral/django-threadedcomments/pulls/63"},"html":{"href":"https://github.com/HonzaKral/django-threadedcomments/pull/63"},"issue":{"href":"https://api.github.com/repos/HonzaKral/django-threadedcomments/issues/63"},"comments":{"href":"https://api.github.com/repos/HonzaKral/django-threadedcomments/issues/63/comments"},"review_comments":{"href":"https://api.github.com/repos/HonzaKral/django-threadedcomments/pulls/63/comments"},"review_comment":{"href":"https://api.github.com/repos/HonzaKral/django-threadedcomments/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HonzaKral/django-threadedcomments/pulls/63/commits"},"statuses":{"href":"https://api.github.com/repos/HonzaKral/django-threadedcomments/statuses/fcf9446c22bc70a433ae46ce8489f0e805d793c3"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}