{"action":"created","comment":{"url":"https://api.github.com/repos/pennersr/django-allauth/pulls/comments/113561754","pull_request_review_id":34961810,"id":113561754,"diff_hunk":"@@ -12,9 +12,16 @@ def __init__(self):\n \n     def get_list(self, request=None):\n         self.load()\n+        try:\n+            from django.contrib.sites.models import Site\n+            site = Site.objects.get_current(request)\n+            ids = [sa.provider for sa in site.socialapp_set.all()]\n+        except:\n+            ids = [provider_cls(request).id for provider_cls in self.provider_map.values()]","path":"allauth/socialaccount/providers/__init__.py","position":9,"original_position":9,"commit_id":"3b20dbf9b99320e19d05a3e6d6838b15ca9fb9db","original_commit_id":"3b20dbf9b99320e19d05a3e6d6838b15ca9fb9db","user":{"login":"velis74","id":5511919,"avatar_url":"https://avatars0.githubusercontent.com/u/5511919?v=3","gravatar_id":"","url":"https://api.github.com/users/velis74","html_url":"https://github.com/velis74","followers_url":"https://api.github.com/users/velis74/followers","following_url":"https://api.github.com/users/velis74/following{/other_user}","gists_url":"https://api.github.com/users/velis74/gists{/gist_id}","starred_url":"https://api.github.com/users/velis74/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/velis74/subscriptions","organizations_url":"https://api.github.com/users/velis74/orgs","repos_url":"https://api.github.com/users/velis74/repos","events_url":"https://api.github.com/users/velis74/events{/privacy}","received_events_url":"https://api.github.com/users/velis74/received_events","type":"User","site_admin":false},"body":"Agreed. Too little research on my part. Sorry.","created_at":"2017-04-26T21:02:08Z","updated_at":"2017-04-26T21:02:08Z","html_url":"https://github.com/pennersr/django-allauth/pull/1689#discussion_r113561754","pull_request_url":"https://api.github.com/repos/pennersr/django-allauth/pulls/1689","_links":{"self":{"href":"https://api.github.com/repos/pennersr/django-allauth/pulls/comments/113561754"},"html":{"href":"https://github.com/pennersr/django-allauth/pull/1689#discussion_r113561754"},"pull_request":{"href":"https://api.github.com/repos/pennersr/django-allauth/pulls/1689"}}},"pull_request":{"url":"https://api.github.com/repos/pennersr/django-allauth/pulls/1689","id":113729202,"html_url":"https://github.com/pennersr/django-allauth/pull/1689","diff_url":"https://github.com/pennersr/django-allauth/pull/1689.diff","patch_url":"https://github.com/pennersr/django-allauth/pull/1689.patch","issue_url":"https://api.github.com/repos/pennersr/django-allauth/issues/1689","number":1689,"state":"open","locked":false,"title":"Issue #1688: different SocialApp providers on different sites","user":{"login":"velis74","id":5511919,"avatar_url":"https://avatars0.githubusercontent.com/u/5511919?v=3","gravatar_id":"","url":"https://api.github.com/users/velis74","html_url":"https://github.com/velis74","followers_url":"https://api.github.com/users/velis74/followers","following_url":"https://api.github.com/users/velis74/following{/other_user}","gists_url":"https://api.github.com/users/velis74/gists{/gist_id}","starred_url":"https://api.github.com/users/velis74/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/velis74/subscriptions","organizations_url":"https://api.github.com/users/velis74/orgs","repos_url":"https://api.github.com/users/velis74/repos","events_url":"https://api.github.com/users/velis74/events{/privacy}","received_events_url":"https://api.github.com/users/velis74/received_events","type":"User","site_admin":false},"body":"A solution to the issue explained in #1688 ","created_at":"2017-03-31T20:44:35Z","updated_at":"2017-04-26T21:02:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"838173780be55265a21eb00d5afb64e7abb22418","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/pennersr/django-allauth/pulls/1689/commits","review_comments_url":"https://api.github.com/repos/pennersr/django-allauth/pulls/1689/comments","review_comment_url":"https://api.github.com/repos/pennersr/django-allauth/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pennersr/django-allauth/issues/1689/comments","statuses_url":"https://api.github.com/repos/pennersr/django-allauth/statuses/3b20dbf9b99320e19d05a3e6d6838b15ca9fb9db","head":{"label":"velis74:master","ref":"master","sha":"3b20dbf9b99320e19d05a3e6d6838b15ca9fb9db","user":{"login":"velis74","id":5511919,"avatar_url":"https://avatars0.githubusercontent.com/u/5511919?v=3","gravatar_id":"","url":"https://api.github.com/users/velis74","html_url":"https://github.com/velis74","followers_url":"https://api.github.com/users/velis74/followers","following_url":"https://api.github.com/users/velis74/following{/other_user}","gists_url":"https://api.github.com/users/velis74/gists{/gist_id}","starred_url":"https://api.github.com/users/velis74/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/velis74/subscriptions","organizations_url":"https://api.github.com/users/velis74/orgs","repos_url":"https://api.github.com/users/velis74/repos","events_url":"https://api.github.com/users/velis74/events{/privacy}","received_events_url":"https://api.github.com/users/velis74/received_events","type":"User","site_admin":false},"repo":{"id":86858493,"name":"django-allauth","full_name":"velis74/django-allauth","owner":{"login":"velis74","id":5511919,"avatar_url":"https://avatars0.githubusercontent.com/u/5511919?v=3","gravatar_id":"","url":"https://api.github.com/users/velis74","html_url":"https://github.com/velis74","followers_url":"https://api.github.com/users/velis74/followers","following_url":"https://api.github.com/users/velis74/following{/other_user}","gists_url":"https://api.github.com/users/velis74/gists{/gist_id}","starred_url":"https://api.github.com/users/velis74/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/velis74/subscriptions","organizations_url":"https://api.github.com/users/velis74/orgs","repos_url":"https://api.github.com/users/velis74/repos","events_url":"https://api.github.com/users/velis74/events{/privacy}","received_events_url":"https://api.github.com/users/velis74/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/velis74/django-allauth","description":"Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication.","fork":true,"url":"https://api.github.com/repos/velis74/django-allauth","forks_url":"https://api.github.com/repos/velis74/django-allauth/forks","keys_url":"https://api.github.com/repos/velis74/django-allauth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/velis74/django-allauth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/velis74/django-allauth/teams","hooks_url":"https://api.github.com/repos/velis74/django-allauth/hooks","issue_events_url":"https://api.github.com/repos/velis74/django-allauth/issues/events{/number}","events_url":"https://api.github.com/repos/velis74/django-allauth/events","assignees_url":"https://api.github.com/repos/velis74/django-allauth/assignees{/user}","branches_url":"https://api.github.com/repos/velis74/django-allauth/branches{/branch}","tags_url":"https://api.github.com/repos/velis74/django-allauth/tags","blobs_url":"https://api.github.com/repos/velis74/django-allauth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/velis74/django-allauth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/velis74/django-allauth/git/refs{/sha}","trees_url":"https://api.github.com/repos/velis74/django-allauth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/velis74/django-allauth/statuses/{sha}","languages_url":"https://api.github.com/repos/velis74/django-allauth/languages","stargazers_url":"https://api.github.com/repos/velis74/django-allauth/stargazers","contributors_url":"https://api.github.com/repos/velis74/django-allauth/contributors","subscribers_url":"https://api.github.com/repos/velis74/django-allauth/subscribers","subscription_url":"https://api.github.com/repos/velis74/django-allauth/subscription","commits_url":"https://api.github.com/repos/velis74/django-allauth/commits{/sha}","git_commits_url":"https://api.github.com/repos/velis74/django-allauth/git/commits{/sha}","comments_url":"https://api.github.com/repos/velis74/django-allauth/comments{/number}","issue_comment_url":"https://api.github.com/repos/velis74/django-allauth/issues/comments{/number}","contents_url":"https://api.github.com/repos/velis74/django-allauth/contents/{+path}","compare_url":"https://api.github.com/repos/velis74/django-allauth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/velis74/django-allauth/merges","archive_url":"https://api.github.com/repos/velis74/django-allauth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/velis74/django-allauth/downloads","issues_url":"https://api.github.com/repos/velis74/django-allauth/issues{/number}","pulls_url":"https://api.github.com/repos/velis74/django-allauth/pulls{/number}","milestones_url":"https://api.github.com/repos/velis74/django-allauth/milestones{/number}","notifications_url":"https://api.github.com/repos/velis74/django-allauth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/velis74/django-allauth/labels{/name}","releases_url":"https://api.github.com/repos/velis74/django-allauth/releases{/id}","deployments_url":"https://api.github.com/repos/velis74/django-allauth/deployments","created_at":"2017-03-31T20:37:38Z","updated_at":"2017-03-31T20:37:40Z","pushed_at":"2017-03-31T20:43:19Z","git_url":"git://github.com/velis74/django-allauth.git","ssh_url":"git@github.com:velis74/django-allauth.git","clone_url":"https://github.com/velis74/django-allauth.git","svn_url":"https://github.com/velis74/django-allauth","homepage":"http://www.intenct.nl/projects/django-allauth/","size":4293,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"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":"pennersr:master","ref":"master","sha":"9a793c1ee1229613a2fab86ed84ee61376e56ca3","user":{"login":"pennersr","id":201022,"avatar_url":"https://avatars0.githubusercontent.com/u/201022?v=3","gravatar_id":"","url":"https://api.github.com/users/pennersr","html_url":"https://github.com/pennersr","followers_url":"https://api.github.com/users/pennersr/followers","following_url":"https://api.github.com/users/pennersr/following{/other_user}","gists_url":"https://api.github.com/users/pennersr/gists{/gist_id}","starred_url":"https://api.github.com/users/pennersr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pennersr/subscriptions","organizations_url":"https://api.github.com/users/pennersr/orgs","repos_url":"https://api.github.com/users/pennersr/repos","events_url":"https://api.github.com/users/pennersr/events{/privacy}","received_events_url":"https://api.github.com/users/pennersr/received_events","type":"User","site_admin":false},"repo":{"id":976994,"name":"django-allauth","full_name":"pennersr/django-allauth","owner":{"login":"pennersr","id":201022,"avatar_url":"https://avatars0.githubusercontent.com/u/201022?v=3","gravatar_id":"","url":"https://api.github.com/users/pennersr","html_url":"https://github.com/pennersr","followers_url":"https://api.github.com/users/pennersr/followers","following_url":"https://api.github.com/users/pennersr/following{/other_user}","gists_url":"https://api.github.com/users/pennersr/gists{/gist_id}","starred_url":"https://api.github.com/users/pennersr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pennersr/subscriptions","organizations_url":"https://api.github.com/users/pennersr/orgs","repos_url":"https://api.github.com/users/pennersr/repos","events_url":"https://api.github.com/users/pennersr/events{/privacy}","received_events_url":"https://api.github.com/users/pennersr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pennersr/django-allauth","description":"Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication.","fork":false,"url":"https://api.github.com/repos/pennersr/django-allauth","forks_url":"https://api.github.com/repos/pennersr/django-allauth/forks","keys_url":"https://api.github.com/repos/pennersr/django-allauth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pennersr/django-allauth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pennersr/django-allauth/teams","hooks_url":"https://api.github.com/repos/pennersr/django-allauth/hooks","issue_events_url":"https://api.github.com/repos/pennersr/django-allauth/issues/events{/number}","events_url":"https://api.github.com/repos/pennersr/django-allauth/events","assignees_url":"https://api.github.com/repos/pennersr/django-allauth/assignees{/user}","branches_url":"https://api.github.com/repos/pennersr/django-allauth/branches{/branch}","tags_url":"https://api.github.com/repos/pennersr/django-allauth/tags","blobs_url":"https://api.github.com/repos/pennersr/django-allauth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pennersr/django-allauth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pennersr/django-allauth/git/refs{/sha}","trees_url":"https://api.github.com/repos/pennersr/django-allauth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pennersr/django-allauth/statuses/{sha}","languages_url":"https://api.github.com/repos/pennersr/django-allauth/languages","stargazers_url":"https://api.github.com/repos/pennersr/django-allauth/stargazers","contributors_url":"https://api.github.com/repos/pennersr/django-allauth/contributors","subscribers_url":"https://api.github.com/repos/pennersr/django-allauth/subscribers","subscription_url":"https://api.github.com/repos/pennersr/django-allauth/subscription","commits_url":"https://api.github.com/repos/pennersr/django-allauth/commits{/sha}","git_commits_url":"https://api.github.com/repos/pennersr/django-allauth/git/commits{/sha}","comments_url":"https://api.github.com/repos/pennersr/django-allauth/comments{/number}","issue_comment_url":"https://api.github.com/repos/pennersr/django-allauth/issues/comments{/number}","contents_url":"https://api.github.com/repos/pennersr/django-allauth/contents/{+path}","compare_url":"https://api.github.com/repos/pennersr/django-allauth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pennersr/django-allauth/merges","archive_url":"https://api.github.com/repos/pennersr/django-allauth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pennersr/django-allauth/downloads","issues_url":"https://api.github.com/repos/pennersr/django-allauth/issues{/number}","pulls_url":"https://api.github.com/repos/pennersr/django-allauth/pulls{/number}","milestones_url":"https://api.github.com/repos/pennersr/django-allauth/milestones{/number}","notifications_url":"https://api.github.com/repos/pennersr/django-allauth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pennersr/django-allauth/labels{/name}","releases_url":"https://api.github.com/repos/pennersr/django-allauth/releases{/id}","deployments_url":"https://api.github.com/repos/pennersr/django-allauth/deployments","created_at":"2010-10-10T20:10:52Z","updated_at":"2017-04-26T15:35:14Z","pushed_at":"2017-04-26T20:40:18Z","git_url":"git://github.com/pennersr/django-allauth.git","ssh_url":"git@github.com:pennersr/django-allauth.git","clone_url":"https://github.com/pennersr/django-allauth.git","svn_url":"https://github.com/pennersr/django-allauth","homepage":"http://www.intenct.nl/projects/django-allauth/","size":4334,"stargazers_count":3000,"watchers_count":3000,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1102,"mirror_url":null,"open_issues_count":100,"forks":1102,"open_issues":100,"watchers":3000,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pennersr/django-allauth/pulls/1689"},"html":{"href":"https://github.com/pennersr/django-allauth/pull/1689"},"issue":{"href":"https://api.github.com/repos/pennersr/django-allauth/issues/1689"},"comments":{"href":"https://api.github.com/repos/pennersr/django-allauth/issues/1689/comments"},"review_comments":{"href":"https://api.github.com/repos/pennersr/django-allauth/pulls/1689/comments"},"review_comment":{"href":"https://api.github.com/repos/pennersr/django-allauth/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pennersr/django-allauth/pulls/1689/commits"},"statuses":{"href":"https://api.github.com/repos/pennersr/django-allauth/statuses/3b20dbf9b99320e19d05a3e6d6838b15ca9fb9db"}}}}
{"actor":{"display_login":"velis74"}}