{"action":"opened","number":19,"pull_request":{"url":"https://api.github.com/repos/openpolis/django-popolo/pulls/19","id":47690869,"html_url":"https://github.com/openpolis/django-popolo/pull/19","diff_url":"https://github.com/openpolis/django-popolo/pull/19.diff","patch_url":"https://github.com/openpolis/django-popolo/pull/19.patch","issue_url":"https://api.github.com/repos/openpolis/django-popolo/issues/19","number":19,"state":"open","locked":false,"title":"Fix the contenttypes restructuring deprecation warning under Django 1.8","user":{"login":"mhl","id":7907,"avatar_url":"https://avatars.githubusercontent.com/u/7907?v=3","gravatar_id":"","url":"https://api.github.com/users/mhl","html_url":"https://github.com/mhl","followers_url":"https://api.github.com/users/mhl/followers","following_url":"https://api.github.com/users/mhl/following{/other_user}","gists_url":"https://api.github.com/users/mhl/gists{/gist_id}","starred_url":"https://api.github.com/users/mhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhl/subscriptions","organizations_url":"https://api.github.com/users/mhl/orgs","repos_url":"https://api.github.com/users/mhl/repos","events_url":"https://api.github.com/users/mhl/events{/privacy}","received_events_url":"https://api.github.com/users/mhl/received_events","type":"User","site_admin":false},"body":"Under Django 1.8 you get this warning from the imports for the\r\ncontenttypes generic relation fields:\r\n\r\n  \"RemovedInDjango19Warning: django.contrib.contenttypes.generic is\r\n   deprecated and will be removed in Django 1.9. Its contents have been\r\n   moved to the fields, forms, and admin submodules of\r\n   django.contrib.contenttypes.\"\r\n\r\nThis commit tries the new version of the import first, and if that\r\nfails uses the deprecated version instead, so will still work on\r\nolder Django versions.","created_at":"2015-10-14T17:40:49Z","updated_at":"2015-10-14T17:40:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openpolis/django-popolo/pulls/19/commits","review_comments_url":"https://api.github.com/repos/openpolis/django-popolo/pulls/19/comments","review_comment_url":"https://api.github.com/repos/openpolis/django-popolo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openpolis/django-popolo/issues/19/comments","statuses_url":"https://api.github.com/repos/openpolis/django-popolo/statuses/5a0845f90f97681267f5105b85267a1fb09a1276","head":{"label":"mysociety:fix-generic-import-warning","ref":"fix-generic-import-warning","sha":"5a0845f90f97681267f5105b85267a1fb09a1276","user":{"login":"mysociety","id":141338,"avatar_url":"https://avatars.githubusercontent.com/u/141338?v=3","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"repo":{"id":20687959,"name":"django-popolo","full_name":"mysociety/django-popolo","owner":{"login":"mysociety","id":141338,"avatar_url":"https://avatars.githubusercontent.com/u/141338?v=3","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mysociety/django-popolo","description":"A django-based Popolo specifications implementation","fork":true,"url":"https://api.github.com/repos/mysociety/django-popolo","forks_url":"https://api.github.com/repos/mysociety/django-popolo/forks","keys_url":"https://api.github.com/repos/mysociety/django-popolo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mysociety/django-popolo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mysociety/django-popolo/teams","hooks_url":"https://api.github.com/repos/mysociety/django-popolo/hooks","issue_events_url":"https://api.github.com/repos/mysociety/django-popolo/issues/events{/number}","events_url":"https://api.github.com/repos/mysociety/django-popolo/events","assignees_url":"https://api.github.com/repos/mysociety/django-popolo/assignees{/user}","branches_url":"https://api.github.com/repos/mysociety/django-popolo/branches{/branch}","tags_url":"https://api.github.com/repos/mysociety/django-popolo/tags","blobs_url":"https://api.github.com/repos/mysociety/django-popolo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mysociety/django-popolo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mysociety/django-popolo/git/refs{/sha}","trees_url":"https://api.github.com/repos/mysociety/django-popolo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mysociety/django-popolo/statuses/{sha}","languages_url":"https://api.github.com/repos/mysociety/django-popolo/languages","stargazers_url":"https://api.github.com/repos/mysociety/django-popolo/stargazers","contributors_url":"https://api.github.com/repos/mysociety/django-popolo/contributors","subscribers_url":"https://api.github.com/repos/mysociety/django-popolo/subscribers","subscription_url":"https://api.github.com/repos/mysociety/django-popolo/subscription","commits_url":"https://api.github.com/repos/mysociety/django-popolo/commits{/sha}","git_commits_url":"https://api.github.com/repos/mysociety/django-popolo/git/commits{/sha}","comments_url":"https://api.github.com/repos/mysociety/django-popolo/comments{/number}","issue_comment_url":"https://api.github.com/repos/mysociety/django-popolo/issues/comments{/number}","contents_url":"https://api.github.com/repos/mysociety/django-popolo/contents/{+path}","compare_url":"https://api.github.com/repos/mysociety/django-popolo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mysociety/django-popolo/merges","archive_url":"https://api.github.com/repos/mysociety/django-popolo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mysociety/django-popolo/downloads","issues_url":"https://api.github.com/repos/mysociety/django-popolo/issues{/number}","pulls_url":"https://api.github.com/repos/mysociety/django-popolo/pulls{/number}","milestones_url":"https://api.github.com/repos/mysociety/django-popolo/milestones{/number}","notifications_url":"https://api.github.com/repos/mysociety/django-popolo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mysociety/django-popolo/labels{/name}","releases_url":"https://api.github.com/repos/mysociety/django-popolo/releases{/id}","created_at":"2014-06-10T14:16:45Z","updated_at":"2014-06-26T09:46:03Z","pushed_at":"2015-10-14T17:40:06Z","git_url":"git://github.com/mysociety/django-popolo.git","ssh_url":"git@github.com:mysociety/django-popolo.git","clone_url":"https://github.com/mysociety/django-popolo.git","svn_url":"https://github.com/mysociety/django-popolo","homepage":null,"size":453,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openpolis:master","ref":"master","sha":"e7359abdbab2f8ec48b48dae31c5a5f847b01009","user":{"login":"openpolis","id":165444,"avatar_url":"https://avatars.githubusercontent.com/u/165444?v=3","gravatar_id":"","url":"https://api.github.com/users/openpolis","html_url":"https://github.com/openpolis","followers_url":"https://api.github.com/users/openpolis/followers","following_url":"https://api.github.com/users/openpolis/following{/other_user}","gists_url":"https://api.github.com/users/openpolis/gists{/gist_id}","starred_url":"https://api.github.com/users/openpolis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openpolis/subscriptions","organizations_url":"https://api.github.com/users/openpolis/orgs","repos_url":"https://api.github.com/users/openpolis/repos","events_url":"https://api.github.com/users/openpolis/events{/privacy}","received_events_url":"https://api.github.com/users/openpolis/received_events","type":"Organization","site_admin":false},"repo":{"id":11450634,"name":"django-popolo","full_name":"openpolis/django-popolo","owner":{"login":"openpolis","id":165444,"avatar_url":"https://avatars.githubusercontent.com/u/165444?v=3","gravatar_id":"","url":"https://api.github.com/users/openpolis","html_url":"https://github.com/openpolis","followers_url":"https://api.github.com/users/openpolis/followers","following_url":"https://api.github.com/users/openpolis/following{/other_user}","gists_url":"https://api.github.com/users/openpolis/gists{/gist_id}","starred_url":"https://api.github.com/users/openpolis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openpolis/subscriptions","organizations_url":"https://api.github.com/users/openpolis/orgs","repos_url":"https://api.github.com/users/openpolis/repos","events_url":"https://api.github.com/users/openpolis/events{/privacy}","received_events_url":"https://api.github.com/users/openpolis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openpolis/django-popolo","description":"A django-based Popolo specifications implementation","fork":false,"url":"https://api.github.com/repos/openpolis/django-popolo","forks_url":"https://api.github.com/repos/openpolis/django-popolo/forks","keys_url":"https://api.github.com/repos/openpolis/django-popolo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openpolis/django-popolo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openpolis/django-popolo/teams","hooks_url":"https://api.github.com/repos/openpolis/django-popolo/hooks","issue_events_url":"https://api.github.com/repos/openpolis/django-popolo/issues/events{/number}","events_url":"https://api.github.com/repos/openpolis/django-popolo/events","assignees_url":"https://api.github.com/repos/openpolis/django-popolo/assignees{/user}","branches_url":"https://api.github.com/repos/openpolis/django-popolo/branches{/branch}","tags_url":"https://api.github.com/repos/openpolis/django-popolo/tags","blobs_url":"https://api.github.com/repos/openpolis/django-popolo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openpolis/django-popolo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openpolis/django-popolo/git/refs{/sha}","trees_url":"https://api.github.com/repos/openpolis/django-popolo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openpolis/django-popolo/statuses/{sha}","languages_url":"https://api.github.com/repos/openpolis/django-popolo/languages","stargazers_url":"https://api.github.com/repos/openpolis/django-popolo/stargazers","contributors_url":"https://api.github.com/repos/openpolis/django-popolo/contributors","subscribers_url":"https://api.github.com/repos/openpolis/django-popolo/subscribers","subscription_url":"https://api.github.com/repos/openpolis/django-popolo/subscription","commits_url":"https://api.github.com/repos/openpolis/django-popolo/commits{/sha}","git_commits_url":"https://api.github.com/repos/openpolis/django-popolo/git/commits{/sha}","comments_url":"https://api.github.com/repos/openpolis/django-popolo/comments{/number}","issue_comment_url":"https://api.github.com/repos/openpolis/django-popolo/issues/comments{/number}","contents_url":"https://api.github.com/repos/openpolis/django-popolo/contents/{+path}","compare_url":"https://api.github.com/repos/openpolis/django-popolo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openpolis/django-popolo/merges","archive_url":"https://api.github.com/repos/openpolis/django-popolo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openpolis/django-popolo/downloads","issues_url":"https://api.github.com/repos/openpolis/django-popolo/issues{/number}","pulls_url":"https://api.github.com/repos/openpolis/django-popolo/pulls{/number}","milestones_url":"https://api.github.com/repos/openpolis/django-popolo/milestones{/number}","notifications_url":"https://api.github.com/repos/openpolis/django-popolo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openpolis/django-popolo/labels{/name}","releases_url":"https://api.github.com/repos/openpolis/django-popolo/releases{/id}","created_at":"2013-07-16T13:48:29Z","updated_at":"2015-09-04T07:28:49Z","pushed_at":"2015-10-14T09:14:48Z","git_url":"git://github.com/openpolis/django-popolo.git","ssh_url":"git@github.com:openpolis/django-popolo.git","clone_url":"https://github.com/openpolis/django-popolo.git","svn_url":"https://github.com/openpolis/django-popolo","homepage":null,"size":584,"stargazers_count":14,"watchers_count":14,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":8,"mirror_url":null,"open_issues_count":7,"forks":8,"open_issues":7,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openpolis/django-popolo/pulls/19"},"html":{"href":"https://github.com/openpolis/django-popolo/pull/19"},"issue":{"href":"https://api.github.com/repos/openpolis/django-popolo/issues/19"},"comments":{"href":"https://api.github.com/repos/openpolis/django-popolo/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/openpolis/django-popolo/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/openpolis/django-popolo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openpolis/django-popolo/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/openpolis/django-popolo/statuses/5a0845f90f97681267f5105b85267a1fb09a1276"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":32,"deletions":22,"changed_files":2}}