{"action":"opened","number":3,"pull_request":{"url":"https://api.github.com/repos/marazmiki/django-domains/pulls/3","id":30174438,"html_url":"https://github.com/marazmiki/django-domains/pull/3","diff_url":"https://github.com/marazmiki/django-domains/pull/3.diff","patch_url":"https://github.com/marazmiki/django-domains/pull/3.patch","issue_url":"https://api.github.com/repos/marazmiki/django-domains/issues/3","number":3,"state":"open","locked":false,"title":"Fixes for uninitialized thread-local SITE_ID","user":{"login":"am0s","id":394461,"avatar_url":"https://avatars.githubusercontent.com/u/394461?v=3","gravatar_id":"","url":"https://api.github.com/users/am0s","html_url":"https://github.com/am0s","followers_url":"https://api.github.com/users/am0s/followers","following_url":"https://api.github.com/users/am0s/following{/other_user}","gists_url":"https://api.github.com/users/am0s/gists{/gist_id}","starred_url":"https://api.github.com/users/am0s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/am0s/subscriptions","organizations_url":"https://api.github.com/users/am0s/orgs","repos_url":"https://api.github.com/users/am0s/repos","events_url":"https://api.github.com/users/am0s/events{/privacy}","received_events_url":"https://api.github.com/users/am0s/received_events","type":"User","site_admin":false},"body":"This fixes a problem with the thread-local **SITE_ID** variable being unmodified in some cases.\r\nI've had issues with requests switching between the Site instances at seemingly random, by ensuring that the **SITE_ID** is always properly initialized we avoid this problem.\r\n\r\nIn addition I disabled the fallback code that picks the first **Site** item, picking a random site is not what you normally want.\r\nI used a setting for it so it can be brought back if wanted.\r\n","created_at":"2015-02-27T15:29:34Z","updated_at":"2015-02-27T15:29:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/marazmiki/django-domains/pulls/3/commits","review_comments_url":"https://api.github.com/repos/marazmiki/django-domains/pulls/3/comments","review_comment_url":"https://api.github.com/repos/marazmiki/django-domains/pulls/comments{/number}","comments_url":"https://api.github.com/repos/marazmiki/django-domains/issues/3/comments","statuses_url":"https://api.github.com/repos/marazmiki/django-domains/statuses/92e4ef166e87ec32b780a63ff04a90675782e9b0","head":{"label":"am0s:master","ref":"master","sha":"92e4ef166e87ec32b780a63ff04a90675782e9b0","user":{"login":"am0s","id":394461,"avatar_url":"https://avatars.githubusercontent.com/u/394461?v=3","gravatar_id":"","url":"https://api.github.com/users/am0s","html_url":"https://github.com/am0s","followers_url":"https://api.github.com/users/am0s/followers","following_url":"https://api.github.com/users/am0s/following{/other_user}","gists_url":"https://api.github.com/users/am0s/gists{/gist_id}","starred_url":"https://api.github.com/users/am0s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/am0s/subscriptions","organizations_url":"https://api.github.com/users/am0s/orgs","repos_url":"https://api.github.com/users/am0s/repos","events_url":"https://api.github.com/users/am0s/events{/privacy}","received_events_url":"https://api.github.com/users/am0s/received_events","type":"User","site_admin":false},"repo":{"id":31424805,"name":"django-domains","full_name":"am0s/django-domains","owner":{"login":"am0s","id":394461,"avatar_url":"https://avatars.githubusercontent.com/u/394461?v=3","gravatar_id":"","url":"https://api.github.com/users/am0s","html_url":"https://github.com/am0s","followers_url":"https://api.github.com/users/am0s/followers","following_url":"https://api.github.com/users/am0s/following{/other_user}","gists_url":"https://api.github.com/users/am0s/gists{/gist_id}","starred_url":"https://api.github.com/users/am0s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/am0s/subscriptions","organizations_url":"https://api.github.com/users/am0s/orgs","repos_url":"https://api.github.com/users/am0s/repos","events_url":"https://api.github.com/users/am0s/events{/privacy}","received_events_url":"https://api.github.com/users/am0s/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/am0s/django-domains","description":"An application that allows you to run many different sites on one Django instance","fork":true,"url":"https://api.github.com/repos/am0s/django-domains","forks_url":"https://api.github.com/repos/am0s/django-domains/forks","keys_url":"https://api.github.com/repos/am0s/django-domains/keys{/key_id}","collaborators_url":"https://api.github.com/repos/am0s/django-domains/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/am0s/django-domains/teams","hooks_url":"https://api.github.com/repos/am0s/django-domains/hooks","issue_events_url":"https://api.github.com/repos/am0s/django-domains/issues/events{/number}","events_url":"https://api.github.com/repos/am0s/django-domains/events","assignees_url":"https://api.github.com/repos/am0s/django-domains/assignees{/user}","branches_url":"https://api.github.com/repos/am0s/django-domains/branches{/branch}","tags_url":"https://api.github.com/repos/am0s/django-domains/tags","blobs_url":"https://api.github.com/repos/am0s/django-domains/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/am0s/django-domains/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/am0s/django-domains/git/refs{/sha}","trees_url":"https://api.github.com/repos/am0s/django-domains/git/trees{/sha}","statuses_url":"https://api.github.com/repos/am0s/django-domains/statuses/{sha}","languages_url":"https://api.github.com/repos/am0s/django-domains/languages","stargazers_url":"https://api.github.com/repos/am0s/django-domains/stargazers","contributors_url":"https://api.github.com/repos/am0s/django-domains/contributors","subscribers_url":"https://api.github.com/repos/am0s/django-domains/subscribers","subscription_url":"https://api.github.com/repos/am0s/django-domains/subscription","commits_url":"https://api.github.com/repos/am0s/django-domains/commits{/sha}","git_commits_url":"https://api.github.com/repos/am0s/django-domains/git/commits{/sha}","comments_url":"https://api.github.com/repos/am0s/django-domains/comments{/number}","issue_comment_url":"https://api.github.com/repos/am0s/django-domains/issues/comments{/number}","contents_url":"https://api.github.com/repos/am0s/django-domains/contents/{+path}","compare_url":"https://api.github.com/repos/am0s/django-domains/compare/{base}...{head}","merges_url":"https://api.github.com/repos/am0s/django-domains/merges","archive_url":"https://api.github.com/repos/am0s/django-domains/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/am0s/django-domains/downloads","issues_url":"https://api.github.com/repos/am0s/django-domains/issues{/number}","pulls_url":"https://api.github.com/repos/am0s/django-domains/pulls{/number}","milestones_url":"https://api.github.com/repos/am0s/django-domains/milestones{/number}","notifications_url":"https://api.github.com/repos/am0s/django-domains/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/am0s/django-domains/labels{/name}","releases_url":"https://api.github.com/repos/am0s/django-domains/releases{/id}","created_at":"2015-02-27T15:10:24Z","updated_at":"2015-02-27T15:17:16Z","pushed_at":"2015-02-27T15:17:16Z","git_url":"git://github.com/am0s/django-domains.git","ssh_url":"git@github.com:am0s/django-domains.git","clone_url":"https://github.com/am0s/django-domains.git","svn_url":"https://github.com/am0s/django-domains","homepage":"","size":116,"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":"marazmiki:master","ref":"master","sha":"4fb6ff796ffbce2afa08c36d42639bfedd648854","user":{"login":"marazmiki","id":207900,"avatar_url":"https://avatars.githubusercontent.com/u/207900?v=3","gravatar_id":"","url":"https://api.github.com/users/marazmiki","html_url":"https://github.com/marazmiki","followers_url":"https://api.github.com/users/marazmiki/followers","following_url":"https://api.github.com/users/marazmiki/following{/other_user}","gists_url":"https://api.github.com/users/marazmiki/gists{/gist_id}","starred_url":"https://api.github.com/users/marazmiki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marazmiki/subscriptions","organizations_url":"https://api.github.com/users/marazmiki/orgs","repos_url":"https://api.github.com/users/marazmiki/repos","events_url":"https://api.github.com/users/marazmiki/events{/privacy}","received_events_url":"https://api.github.com/users/marazmiki/received_events","type":"User","site_admin":false},"repo":{"id":2842331,"name":"django-domains","full_name":"marazmiki/django-domains","owner":{"login":"marazmiki","id":207900,"avatar_url":"https://avatars.githubusercontent.com/u/207900?v=3","gravatar_id":"","url":"https://api.github.com/users/marazmiki","html_url":"https://github.com/marazmiki","followers_url":"https://api.github.com/users/marazmiki/followers","following_url":"https://api.github.com/users/marazmiki/following{/other_user}","gists_url":"https://api.github.com/users/marazmiki/gists{/gist_id}","starred_url":"https://api.github.com/users/marazmiki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marazmiki/subscriptions","organizations_url":"https://api.github.com/users/marazmiki/orgs","repos_url":"https://api.github.com/users/marazmiki/repos","events_url":"https://api.github.com/users/marazmiki/events{/privacy}","received_events_url":"https://api.github.com/users/marazmiki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marazmiki/django-domains","description":"An application that allows you to run many different sites on one Django instance","fork":false,"url":"https://api.github.com/repos/marazmiki/django-domains","forks_url":"https://api.github.com/repos/marazmiki/django-domains/forks","keys_url":"https://api.github.com/repos/marazmiki/django-domains/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marazmiki/django-domains/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marazmiki/django-domains/teams","hooks_url":"https://api.github.com/repos/marazmiki/django-domains/hooks","issue_events_url":"https://api.github.com/repos/marazmiki/django-domains/issues/events{/number}","events_url":"https://api.github.com/repos/marazmiki/django-domains/events","assignees_url":"https://api.github.com/repos/marazmiki/django-domains/assignees{/user}","branches_url":"https://api.github.com/repos/marazmiki/django-domains/branches{/branch}","tags_url":"https://api.github.com/repos/marazmiki/django-domains/tags","blobs_url":"https://api.github.com/repos/marazmiki/django-domains/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marazmiki/django-domains/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marazmiki/django-domains/git/refs{/sha}","trees_url":"https://api.github.com/repos/marazmiki/django-domains/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marazmiki/django-domains/statuses/{sha}","languages_url":"https://api.github.com/repos/marazmiki/django-domains/languages","stargazers_url":"https://api.github.com/repos/marazmiki/django-domains/stargazers","contributors_url":"https://api.github.com/repos/marazmiki/django-domains/contributors","subscribers_url":"https://api.github.com/repos/marazmiki/django-domains/subscribers","subscription_url":"https://api.github.com/repos/marazmiki/django-domains/subscription","commits_url":"https://api.github.com/repos/marazmiki/django-domains/commits{/sha}","git_commits_url":"https://api.github.com/repos/marazmiki/django-domains/git/commits{/sha}","comments_url":"https://api.github.com/repos/marazmiki/django-domains/comments{/number}","issue_comment_url":"https://api.github.com/repos/marazmiki/django-domains/issues/comments{/number}","contents_url":"https://api.github.com/repos/marazmiki/django-domains/contents/{+path}","compare_url":"https://api.github.com/repos/marazmiki/django-domains/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marazmiki/django-domains/merges","archive_url":"https://api.github.com/repos/marazmiki/django-domains/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marazmiki/django-domains/downloads","issues_url":"https://api.github.com/repos/marazmiki/django-domains/issues{/number}","pulls_url":"https://api.github.com/repos/marazmiki/django-domains/pulls{/number}","milestones_url":"https://api.github.com/repos/marazmiki/django-domains/milestones{/number}","notifications_url":"https://api.github.com/repos/marazmiki/django-domains/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marazmiki/django-domains/labels{/name}","releases_url":"https://api.github.com/repos/marazmiki/django-domains/releases{/id}","created_at":"2011-11-24T09:49:53Z","updated_at":"2015-02-05T05:53:22Z","pushed_at":"2015-01-21T04:35:26Z","git_url":"git://github.com/marazmiki/django-domains.git","ssh_url":"git@github.com:marazmiki/django-domains.git","clone_url":"https://github.com/marazmiki/django-domains.git","svn_url":"https://github.com/marazmiki/django-domains","homepage":"","size":203,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/marazmiki/django-domains/pulls/3"},"html":{"href":"https://github.com/marazmiki/django-domains/pull/3"},"issue":{"href":"https://api.github.com/repos/marazmiki/django-domains/issues/3"},"comments":{"href":"https://api.github.com/repos/marazmiki/django-domains/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/marazmiki/django-domains/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/marazmiki/django-domains/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/marazmiki/django-domains/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/marazmiki/django-domains/statuses/92e4ef166e87ec32b780a63ff04a90675782e9b0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":4,"additions":18,"deletions":10,"changed_files":1}}