{"action":"opened","number":5568,"pull_request":{"url":"https://api.github.com/repos/django/django/pulls/5568","id":50033537,"html_url":"https://github.com/django/django/pull/5568","diff_url":"https://github.com/django/django/pull/5568.diff","patch_url":"https://github.com/django/django/pull/5568.patch","issue_url":"https://api.github.com/repos/django/django/issues/5568","number":5568,"state":"open","locked":false,"title":"Fixes #25693 - data loss with M2M and Prefetch","user":{"login":"Ian-Foote","id":1843202,"avatar_url":"https://avatars.githubusercontent.com/u/1843202?v=3","gravatar_id":"","url":"https://api.github.com/users/Ian-Foote","html_url":"https://github.com/Ian-Foote","followers_url":"https://api.github.com/users/Ian-Foote/followers","following_url":"https://api.github.com/users/Ian-Foote/following{/other_user}","gists_url":"https://api.github.com/users/Ian-Foote/gists{/gist_id}","starred_url":"https://api.github.com/users/Ian-Foote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ian-Foote/subscriptions","organizations_url":"https://api.github.com/users/Ian-Foote/orgs","repos_url":"https://api.github.com/users/Ian-Foote/repos","events_url":"https://api.github.com/users/Ian-Foote/events{/privacy}","received_events_url":"https://api.github.com/users/Ian-Foote/received_events","type":"User","site_admin":false},"body":"Thanks to Jamie Matthews for finding and explaining the bug.","created_at":"2015-11-07T10:53:54Z","updated_at":"2015-11-07T10:53:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/django/django/pulls/5568/commits","review_comments_url":"https://api.github.com/repos/django/django/pulls/5568/comments","review_comment_url":"https://api.github.com/repos/django/django/pulls/comments{/number}","comments_url":"https://api.github.com/repos/django/django/issues/5568/comments","statuses_url":"https://api.github.com/repos/django/django/statuses/da0f6b9d84bc19f58f16e2709dce1a908f7d99fc","head":{"label":"Ian-Foote:prefetch-shadow","ref":"prefetch-shadow","sha":"da0f6b9d84bc19f58f16e2709dce1a908f7d99fc","user":{"login":"Ian-Foote","id":1843202,"avatar_url":"https://avatars.githubusercontent.com/u/1843202?v=3","gravatar_id":"","url":"https://api.github.com/users/Ian-Foote","html_url":"https://github.com/Ian-Foote","followers_url":"https://api.github.com/users/Ian-Foote/followers","following_url":"https://api.github.com/users/Ian-Foote/following{/other_user}","gists_url":"https://api.github.com/users/Ian-Foote/gists{/gist_id}","starred_url":"https://api.github.com/users/Ian-Foote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ian-Foote/subscriptions","organizations_url":"https://api.github.com/users/Ian-Foote/orgs","repos_url":"https://api.github.com/users/Ian-Foote/repos","events_url":"https://api.github.com/users/Ian-Foote/events{/privacy}","received_events_url":"https://api.github.com/users/Ian-Foote/received_events","type":"User","site_admin":false},"repo":{"id":16351410,"name":"django","full_name":"Ian-Foote/django","owner":{"login":"Ian-Foote","id":1843202,"avatar_url":"https://avatars.githubusercontent.com/u/1843202?v=3","gravatar_id":"","url":"https://api.github.com/users/Ian-Foote","html_url":"https://github.com/Ian-Foote","followers_url":"https://api.github.com/users/Ian-Foote/followers","following_url":"https://api.github.com/users/Ian-Foote/following{/other_user}","gists_url":"https://api.github.com/users/Ian-Foote/gists{/gist_id}","starred_url":"https://api.github.com/users/Ian-Foote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ian-Foote/subscriptions","organizations_url":"https://api.github.com/users/Ian-Foote/orgs","repos_url":"https://api.github.com/users/Ian-Foote/repos","events_url":"https://api.github.com/users/Ian-Foote/events{/privacy}","received_events_url":"https://api.github.com/users/Ian-Foote/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ian-Foote/django","description":"The Web framework for perfectionists with deadlines.","fork":true,"url":"https://api.github.com/repos/Ian-Foote/django","forks_url":"https://api.github.com/repos/Ian-Foote/django/forks","keys_url":"https://api.github.com/repos/Ian-Foote/django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ian-Foote/django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ian-Foote/django/teams","hooks_url":"https://api.github.com/repos/Ian-Foote/django/hooks","issue_events_url":"https://api.github.com/repos/Ian-Foote/django/issues/events{/number}","events_url":"https://api.github.com/repos/Ian-Foote/django/events","assignees_url":"https://api.github.com/repos/Ian-Foote/django/assignees{/user}","branches_url":"https://api.github.com/repos/Ian-Foote/django/branches{/branch}","tags_url":"https://api.github.com/repos/Ian-Foote/django/tags","blobs_url":"https://api.github.com/repos/Ian-Foote/django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ian-Foote/django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ian-Foote/django/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ian-Foote/django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ian-Foote/django/statuses/{sha}","languages_url":"https://api.github.com/repos/Ian-Foote/django/languages","stargazers_url":"https://api.github.com/repos/Ian-Foote/django/stargazers","contributors_url":"https://api.github.com/repos/Ian-Foote/django/contributors","subscribers_url":"https://api.github.com/repos/Ian-Foote/django/subscribers","subscription_url":"https://api.github.com/repos/Ian-Foote/django/subscription","commits_url":"https://api.github.com/repos/Ian-Foote/django/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ian-Foote/django/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ian-Foote/django/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ian-Foote/django/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ian-Foote/django/contents/{+path}","compare_url":"https://api.github.com/repos/Ian-Foote/django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ian-Foote/django/merges","archive_url":"https://api.github.com/repos/Ian-Foote/django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ian-Foote/django/downloads","issues_url":"https://api.github.com/repos/Ian-Foote/django/issues{/number}","pulls_url":"https://api.github.com/repos/Ian-Foote/django/pulls{/number}","milestones_url":"https://api.github.com/repos/Ian-Foote/django/milestones{/number}","notifications_url":"https://api.github.com/repos/Ian-Foote/django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ian-Foote/django/labels{/name}","releases_url":"https://api.github.com/repos/Ian-Foote/django/releases{/id}","created_at":"2014-01-29T16:52:51Z","updated_at":"2014-06-29T21:55:32Z","pushed_at":"2015-11-07T10:52:25Z","git_url":"git://github.com/Ian-Foote/django.git","ssh_url":"git@github.com:Ian-Foote/django.git","clone_url":"https://github.com/Ian-Foote/django.git","svn_url":"https://github.com/Ian-Foote/django","homepage":"http://www.djangoproject.com/","size":147477,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"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":"django:master","ref":"master","sha":"ac750dbbc0533dcf9c2f6c0f09957adf6f976d3e","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":4164482,"name":"django","full_name":"django/django","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","description":"The Web framework for perfectionists with deadlines.","fork":false,"url":"https://api.github.com/repos/django/django","forks_url":"https://api.github.com/repos/django/django/forks","keys_url":"https://api.github.com/repos/django/django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/django/django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/django/django/teams","hooks_url":"https://api.github.com/repos/django/django/hooks","issue_events_url":"https://api.github.com/repos/django/django/issues/events{/number}","events_url":"https://api.github.com/repos/django/django/events","assignees_url":"https://api.github.com/repos/django/django/assignees{/user}","branches_url":"https://api.github.com/repos/django/django/branches{/branch}","tags_url":"https://api.github.com/repos/django/django/tags","blobs_url":"https://api.github.com/repos/django/django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/django/django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/django/django/git/refs{/sha}","trees_url":"https://api.github.com/repos/django/django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/django/django/statuses/{sha}","languages_url":"https://api.github.com/repos/django/django/languages","stargazers_url":"https://api.github.com/repos/django/django/stargazers","contributors_url":"https://api.github.com/repos/django/django/contributors","subscribers_url":"https://api.github.com/repos/django/django/subscribers","subscription_url":"https://api.github.com/repos/django/django/subscription","commits_url":"https://api.github.com/repos/django/django/commits{/sha}","git_commits_url":"https://api.github.com/repos/django/django/git/commits{/sha}","comments_url":"https://api.github.com/repos/django/django/comments{/number}","issue_comment_url":"https://api.github.com/repos/django/django/issues/comments{/number}","contents_url":"https://api.github.com/repos/django/django/contents/{+path}","compare_url":"https://api.github.com/repos/django/django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/django/django/merges","archive_url":"https://api.github.com/repos/django/django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/django/django/downloads","issues_url":"https://api.github.com/repos/django/django/issues{/number}","pulls_url":"https://api.github.com/repos/django/django/pulls{/number}","milestones_url":"https://api.github.com/repos/django/django/milestones{/number}","notifications_url":"https://api.github.com/repos/django/django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/django/django/labels{/name}","releases_url":"https://api.github.com/repos/django/django/releases{/id}","created_at":"2012-04-28T02:47:18Z","updated_at":"2015-11-07T10:43:35Z","pushed_at":"2015-11-07T10:44:41Z","git_url":"git://github.com/django/django.git","ssh_url":"git@github.com:django/django.git","clone_url":"https://github.com/django/django.git","svn_url":"https://github.com/django/django","homepage":"https://www.djangoproject.com/","size":320869,"stargazers_count":16589,"watchers_count":16589,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6732,"mirror_url":null,"open_issues_count":76,"forks":6732,"open_issues":76,"watchers":16589,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/django/django/pulls/5568"},"html":{"href":"https://github.com/django/django/pull/5568"},"issue":{"href":"https://api.github.com/repos/django/django/issues/5568"},"comments":{"href":"https://api.github.com/repos/django/django/issues/5568/comments"},"review_comments":{"href":"https://api.github.com/repos/django/django/pulls/5568/comments"},"review_comment":{"href":"https://api.github.com/repos/django/django/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/django/django/pulls/5568/commits"},"statuses":{"href":"https://api.github.com/repos/django/django/statuses/da0f6b9d84bc19f58f16e2709dce1a908f7d99fc"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":31,"deletions":1,"changed_files":2}}