{"action":"created","comment":{"url":"https://api.github.com/repos/django/django-contrib-comments/pulls/comments/32379468","id":32379468,"diff_hunk":"@@ -0,0 +1,6 @@\n+import django\n+\n+if django.VERSION < (1, 7):\n+    from django.contrib.sites.models import get_current_site\n+else:\n+    from django.contrib.sites.shortcuts import get_current_site","path":"django_comments/compat.py","position":6,"original_position":6,"commit_id":"fcd836e7e973e5182f957829921128682ac8f322","original_commit_id":"fcd836e7e973e5182f957829921128682ac8f322","user":{"login":"claudep","id":143192,"avatar_url":"https://avatars.githubusercontent.com/u/143192?v=3","gravatar_id":"","url":"https://api.github.com/users/claudep","html_url":"https://github.com/claudep","followers_url":"https://api.github.com/users/claudep/followers","following_url":"https://api.github.com/users/claudep/following{/other_user}","gists_url":"https://api.github.com/users/claudep/gists{/gist_id}","starred_url":"https://api.github.com/users/claudep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudep/subscriptions","organizations_url":"https://api.github.com/users/claudep/orgs","repos_url":"https://api.github.com/users/claudep/repos","events_url":"https://api.github.com/users/claudep/events{/privacy}","received_events_url":"https://api.github.com/users/claudep/received_events","type":"User","site_admin":false},"body":"I'd rather use the `try: ... except ImportError: ...` pattern (as used elsewhere in this package).","created_at":"2015-06-14T13:12:42Z","updated_at":"2015-06-14T13:12:42Z","html_url":"https://github.com/django/django-contrib-comments/pull/42#discussion_r32379468","pull_request_url":"https://api.github.com/repos/django/django-contrib-comments/pulls/42","_links":{"self":{"href":"https://api.github.com/repos/django/django-contrib-comments/pulls/comments/32379468"},"html":{"href":"https://github.com/django/django-contrib-comments/pull/42#discussion_r32379468"},"pull_request":{"href":"https://api.github.com/repos/django/django-contrib-comments/pulls/42"}}},"pull_request":{"url":"https://api.github.com/repos/django/django-contrib-comments/pulls/42","id":37632033,"html_url":"https://github.com/django/django-contrib-comments/pull/42","diff_url":"https://github.com/django/django-contrib-comments/pull/42.diff","patch_url":"https://github.com/django/django-contrib-comments/pull/42.patch","issue_url":"https://api.github.com/repos/django/django-contrib-comments/issues/42","number":42,"state":"open","locked":false,"title":"get_current_site deprecation warning","user":{"login":"pahko","id":572114,"avatar_url":"https://avatars.githubusercontent.com/u/572114?v=3","gravatar_id":"","url":"https://api.github.com/users/pahko","html_url":"https://github.com/pahko","followers_url":"https://api.github.com/users/pahko/followers","following_url":"https://api.github.com/users/pahko/following{/other_user}","gists_url":"https://api.github.com/users/pahko/gists{/gist_id}","starred_url":"https://api.github.com/users/pahko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pahko/subscriptions","organizations_url":"https://api.github.com/users/pahko/orgs","repos_url":"https://api.github.com/users/pahko/repos","events_url":"https://api.github.com/users/pahko/events{/privacy}","received_events_url":"https://api.github.com/users/pahko/received_events","type":"User","site_admin":false},"body":"there is still a bunch of warnings when using `Django>=1.8`, but those are related to the tests and the `custom_comments` app.","created_at":"2015-06-13T21:56:19Z","updated_at":"2015-06-14T13:12:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"66d9b76ab55a09a2ee807cdc3a702a13e3329587","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/django/django-contrib-comments/pulls/42/commits","review_comments_url":"https://api.github.com/repos/django/django-contrib-comments/pulls/42/comments","review_comment_url":"https://api.github.com/repos/django/django-contrib-comments/pulls/comments{/number}","comments_url":"https://api.github.com/repos/django/django-contrib-comments/issues/42/comments","statuses_url":"https://api.github.com/repos/django/django-contrib-comments/statuses/fcd836e7e973e5182f957829921128682ac8f322","head":{"label":"pahko:get_current_site-deprecation-warning","ref":"get_current_site-deprecation-warning","sha":"fcd836e7e973e5182f957829921128682ac8f322","user":{"login":"pahko","id":572114,"avatar_url":"https://avatars.githubusercontent.com/u/572114?v=3","gravatar_id":"","url":"https://api.github.com/users/pahko","html_url":"https://github.com/pahko","followers_url":"https://api.github.com/users/pahko/followers","following_url":"https://api.github.com/users/pahko/following{/other_user}","gists_url":"https://api.github.com/users/pahko/gists{/gist_id}","starred_url":"https://api.github.com/users/pahko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pahko/subscriptions","organizations_url":"https://api.github.com/users/pahko/orgs","repos_url":"https://api.github.com/users/pahko/repos","events_url":"https://api.github.com/users/pahko/events{/privacy}","received_events_url":"https://api.github.com/users/pahko/received_events","type":"User","site_admin":false},"repo":{"id":37389156,"name":"django-contrib-comments","full_name":"pahko/django-contrib-comments","owner":{"login":"pahko","id":572114,"avatar_url":"https://avatars.githubusercontent.com/u/572114?v=3","gravatar_id":"","url":"https://api.github.com/users/pahko","html_url":"https://github.com/pahko","followers_url":"https://api.github.com/users/pahko/followers","following_url":"https://api.github.com/users/pahko/following{/other_user}","gists_url":"https://api.github.com/users/pahko/gists{/gist_id}","starred_url":"https://api.github.com/users/pahko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pahko/subscriptions","organizations_url":"https://api.github.com/users/pahko/orgs","repos_url":"https://api.github.com/users/pahko/repos","events_url":"https://api.github.com/users/pahko/events{/privacy}","received_events_url":"https://api.github.com/users/pahko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pahko/django-contrib-comments","description":null,"fork":true,"url":"https://api.github.com/repos/pahko/django-contrib-comments","forks_url":"https://api.github.com/repos/pahko/django-contrib-comments/forks","keys_url":"https://api.github.com/repos/pahko/django-contrib-comments/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pahko/django-contrib-comments/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pahko/django-contrib-comments/teams","hooks_url":"https://api.github.com/repos/pahko/django-contrib-comments/hooks","issue_events_url":"https://api.github.com/repos/pahko/django-contrib-comments/issues/events{/number}","events_url":"https://api.github.com/repos/pahko/django-contrib-comments/events","assignees_url":"https://api.github.com/repos/pahko/django-contrib-comments/assignees{/user}","branches_url":"https://api.github.com/repos/pahko/django-contrib-comments/branches{/branch}","tags_url":"https://api.github.com/repos/pahko/django-contrib-comments/tags","blobs_url":"https://api.github.com/repos/pahko/django-contrib-comments/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pahko/django-contrib-comments/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pahko/django-contrib-comments/git/refs{/sha}","trees_url":"https://api.github.com/repos/pahko/django-contrib-comments/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pahko/django-contrib-comments/statuses/{sha}","languages_url":"https://api.github.com/repos/pahko/django-contrib-comments/languages","stargazers_url":"https://api.github.com/repos/pahko/django-contrib-comments/stargazers","contributors_url":"https://api.github.com/repos/pahko/django-contrib-comments/contributors","subscribers_url":"https://api.github.com/repos/pahko/django-contrib-comments/subscribers","subscription_url":"https://api.github.com/repos/pahko/django-contrib-comments/subscription","commits_url":"https://api.github.com/repos/pahko/django-contrib-comments/commits{/sha}","git_commits_url":"https://api.github.com/repos/pahko/django-contrib-comments/git/commits{/sha}","comments_url":"https://api.github.com/repos/pahko/django-contrib-comments/comments{/number}","issue_comment_url":"https://api.github.com/repos/pahko/django-contrib-comments/issues/comments{/number}","contents_url":"https://api.github.com/repos/pahko/django-contrib-comments/contents/{+path}","compare_url":"https://api.github.com/repos/pahko/django-contrib-comments/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pahko/django-contrib-comments/merges","archive_url":"https://api.github.com/repos/pahko/django-contrib-comments/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pahko/django-contrib-comments/downloads","issues_url":"https://api.github.com/repos/pahko/django-contrib-comments/issues{/number}","pulls_url":"https://api.github.com/repos/pahko/django-contrib-comments/pulls{/number}","milestones_url":"https://api.github.com/repos/pahko/django-contrib-comments/milestones{/number}","notifications_url":"https://api.github.com/repos/pahko/django-contrib-comments/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pahko/django-contrib-comments/labels{/name}","releases_url":"https://api.github.com/repos/pahko/django-contrib-comments/releases{/id}","created_at":"2015-06-13T21:50:47Z","updated_at":"2015-06-13T21:50:47Z","pushed_at":"2015-06-13T21:54:05Z","git_url":"git://github.com/pahko/django-contrib-comments.git","ssh_url":"git@github.com:pahko/django-contrib-comments.git","clone_url":"https://github.com/pahko/django-contrib-comments.git","svn_url":"https://github.com/pahko/django-contrib-comments","homepage":null,"size":406,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"django:master","ref":"master","sha":"45347d0ae86f7e025197597f41e6d8d078ac8f2d","user":{"login":"django","id":27804,"avatar_url":"https://avatars.githubusercontent.com/u/27804?v=3","gravatar_id":"","url":"https://api.github.com/users/django","html_url":"https://github.com/django","followers_url":"https://api.github.com/users/django/followers","following_url":"https://api.github.com/users/django/following{/other_user}","gists_url":"https://api.github.com/users/django/gists{/gist_id}","starred_url":"https://api.github.com/users/django/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django/subscriptions","organizations_url":"https://api.github.com/users/django/orgs","repos_url":"https://api.github.com/users/django/repos","events_url":"https://api.github.com/users/django/events{/privacy}","received_events_url":"https://api.github.com/users/django/received_events","type":"Organization","site_admin":false},"repo":{"id":8710168,"name":"django-contrib-comments","full_name":"django/django-contrib-comments","owner":{"login":"django","id":27804,"avatar_url":"https://avatars.githubusercontent.com/u/27804?v=3","gravatar_id":"","url":"https://api.github.com/users/django","html_url":"https://github.com/django","followers_url":"https://api.github.com/users/django/followers","following_url":"https://api.github.com/users/django/following{/other_user}","gists_url":"https://api.github.com/users/django/gists{/gist_id}","starred_url":"https://api.github.com/users/django/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django/subscriptions","organizations_url":"https://api.github.com/users/django/orgs","repos_url":"https://api.github.com/users/django/repos","events_url":"https://api.github.com/users/django/events{/privacy}","received_events_url":"https://api.github.com/users/django/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/django/django-contrib-comments","description":null,"fork":false,"url":"https://api.github.com/repos/django/django-contrib-comments","forks_url":"https://api.github.com/repos/django/django-contrib-comments/forks","keys_url":"https://api.github.com/repos/django/django-contrib-comments/keys{/key_id}","collaborators_url":"https://api.github.com/repos/django/django-contrib-comments/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/django/django-contrib-comments/teams","hooks_url":"https://api.github.com/repos/django/django-contrib-comments/hooks","issue_events_url":"https://api.github.com/repos/django/django-contrib-comments/issues/events{/number}","events_url":"https://api.github.com/repos/django/django-contrib-comments/events","assignees_url":"https://api.github.com/repos/django/django-contrib-comments/assignees{/user}","branches_url":"https://api.github.com/repos/django/django-contrib-comments/branches{/branch}","tags_url":"https://api.github.com/repos/django/django-contrib-comments/tags","blobs_url":"https://api.github.com/repos/django/django-contrib-comments/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/django/django-contrib-comments/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/django/django-contrib-comments/git/refs{/sha}","trees_url":"https://api.github.com/repos/django/django-contrib-comments/git/trees{/sha}","statuses_url":"https://api.github.com/repos/django/django-contrib-comments/statuses/{sha}","languages_url":"https://api.github.com/repos/django/django-contrib-comments/languages","stargazers_url":"https://api.github.com/repos/django/django-contrib-comments/stargazers","contributors_url":"https://api.github.com/repos/django/django-contrib-comments/contributors","subscribers_url":"https://api.github.com/repos/django/django-contrib-comments/subscribers","subscription_url":"https://api.github.com/repos/django/django-contrib-comments/subscription","commits_url":"https://api.github.com/repos/django/django-contrib-comments/commits{/sha}","git_commits_url":"https://api.github.com/repos/django/django-contrib-comments/git/commits{/sha}","comments_url":"https://api.github.com/repos/django/django-contrib-comments/comments{/number}","issue_comment_url":"https://api.github.com/repos/django/django-contrib-comments/issues/comments{/number}","contents_url":"https://api.github.com/repos/django/django-contrib-comments/contents/{+path}","compare_url":"https://api.github.com/repos/django/django-contrib-comments/compare/{base}...{head}","merges_url":"https://api.github.com/repos/django/django-contrib-comments/merges","archive_url":"https://api.github.com/repos/django/django-contrib-comments/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/django/django-contrib-comments/downloads","issues_url":"https://api.github.com/repos/django/django-contrib-comments/issues{/number}","pulls_url":"https://api.github.com/repos/django/django-contrib-comments/pulls{/number}","milestones_url":"https://api.github.com/repos/django/django-contrib-comments/milestones{/number}","notifications_url":"https://api.github.com/repos/django/django-contrib-comments/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/django/django-contrib-comments/labels{/name}","releases_url":"https://api.github.com/repos/django/django-contrib-comments/releases{/id}","created_at":"2013-03-11T18:27:37Z","updated_at":"2015-06-11T14:32:08Z","pushed_at":"2015-06-13T21:56:19Z","git_url":"git://github.com/django/django-contrib-comments.git","ssh_url":"git@github.com:django/django-contrib-comments.git","clone_url":"https://github.com/django/django-contrib-comments.git","svn_url":"https://github.com/django/django-contrib-comments","homepage":null,"size":725,"stargazers_count":119,"watchers_count":119,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":87,"mirror_url":null,"open_issues_count":6,"forks":87,"open_issues":6,"watchers":119,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/django/django-contrib-comments/pulls/42"},"html":{"href":"https://github.com/django/django-contrib-comments/pull/42"},"issue":{"href":"https://api.github.com/repos/django/django-contrib-comments/issues/42"},"comments":{"href":"https://api.github.com/repos/django/django-contrib-comments/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/django/django-contrib-comments/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/django/django-contrib-comments/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/django/django-contrib-comments/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/django/django-contrib-comments/statuses/fcd836e7e973e5182f957829921128682ac8f322"}}}}