{"action":"opened","number":141,"pull_request":{"url":"https://api.github.com/repos/ccnmtl/django-pagetree/pulls/141","id":74448436,"html_url":"https://github.com/ccnmtl/django-pagetree/pull/141","diff_url":"https://github.com/ccnmtl/django-pagetree/pull/141.diff","patch_url":"https://github.com/ccnmtl/django-pagetree/pull/141.patch","issue_url":"https://api.github.com/repos/ccnmtl/django-pagetree/issues/141","number":141,"state":"open","locked":false,"title":"migration to delete TestBlock table if it exists","user":{"login":"thraxil","id":7821,"avatar_url":"https://avatars.githubusercontent.com/u/7821?v=3","gravatar_id":"","url":"https://api.github.com/users/thraxil","html_url":"https://github.com/thraxil","followers_url":"https://api.github.com/users/thraxil/followers","following_url":"https://api.github.com/users/thraxil/following{/other_user}","gists_url":"https://api.github.com/users/thraxil/gists{/gist_id}","starred_url":"https://api.github.com/users/thraxil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thraxil/subscriptions","organizations_url":"https://api.github.com/users/thraxil/orgs","repos_url":"https://api.github.com/users/thraxil/repos","events_url":"https://api.github.com/users/thraxil/events{/privacy}","received_events_url":"https://api.github.com/users/thraxil/received_events","type":"User","site_admin":false},"body":"At one point in the past, the `TestBlock` model was visible to the\r\nmigration system and a bunch of our apps have a stray\r\n`pagetree_testblock` table in the database. When `manage.py migrate` is\r\nrun against those databases, we get:\r\n\r\n```\r\n  Your models have changes that are not yet reflected in a migration, and so won't be applied.\r\n  Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.\r\n```\r\n\r\nRunning `manage.py makemigrations` will create a pagetree migration that\r\ndeletes the table.\r\n\r\nUnfortunately, if that gets checked in, it breaks the apps that managed\r\nto avoid getting that `pagetree_testblock` table created in the first\r\nplace (it tries to delete a table that doesn't exist and that fails).\r\n\r\nEven more importantly, it breaks the unit tests since the in-memory\r\ndatabase doesn't have that table.\r\n\r\nThis commit adds a migration which does the\r\n`migrations.DeleteModel(name=\"TestBlock\")`, but wraps it in a try/catch\r\nso it's harmless if the table doesn't actually exist.","created_at":"2016-06-20T14:04:36Z","updated_at":"2016-06-20T14:04:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"962ee76723565412a61983847e11f23925ecfad6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ccnmtl/django-pagetree/pulls/141/commits","review_comments_url":"https://api.github.com/repos/ccnmtl/django-pagetree/pulls/141/comments","review_comment_url":"https://api.github.com/repos/ccnmtl/django-pagetree/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ccnmtl/django-pagetree/issues/141/comments","statuses_url":"https://api.github.com/repos/ccnmtl/django-pagetree/statuses/5e72efc92a80c32d439b7758d9b182a5134b95bd","head":{"label":"ccnmtl:delete-testblock-migration","ref":"delete-testblock-migration","sha":"5e72efc92a80c32d439b7758d9b182a5134b95bd","user":{"login":"ccnmtl","id":52456,"avatar_url":"https://avatars.githubusercontent.com/u/52456?v=3","gravatar_id":"","url":"https://api.github.com/users/ccnmtl","html_url":"https://github.com/ccnmtl","followers_url":"https://api.github.com/users/ccnmtl/followers","following_url":"https://api.github.com/users/ccnmtl/following{/other_user}","gists_url":"https://api.github.com/users/ccnmtl/gists{/gist_id}","starred_url":"https://api.github.com/users/ccnmtl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccnmtl/subscriptions","organizations_url":"https://api.github.com/users/ccnmtl/orgs","repos_url":"https://api.github.com/users/ccnmtl/repos","events_url":"https://api.github.com/users/ccnmtl/events{/privacy}","received_events_url":"https://api.github.com/users/ccnmtl/received_events","type":"Organization","site_admin":false},"repo":{"id":843712,"name":"django-pagetree","full_name":"ccnmtl/django-pagetree","owner":{"login":"ccnmtl","id":52456,"avatar_url":"https://avatars.githubusercontent.com/u/52456?v=3","gravatar_id":"","url":"https://api.github.com/users/ccnmtl","html_url":"https://github.com/ccnmtl","followers_url":"https://api.github.com/users/ccnmtl/followers","following_url":"https://api.github.com/users/ccnmtl/following{/other_user}","gists_url":"https://api.github.com/users/ccnmtl/gists{/gist_id}","starred_url":"https://api.github.com/users/ccnmtl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccnmtl/subscriptions","organizations_url":"https://api.github.com/users/ccnmtl/orgs","repos_url":"https://api.github.com/users/ccnmtl/repos","events_url":"https://api.github.com/users/ccnmtl/events{/privacy}","received_events_url":"https://api.github.com/users/ccnmtl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ccnmtl/django-pagetree","description":"CMS guts. Hierarchical tree of pages that are in turn made up of blocks.","fork":false,"url":"https://api.github.com/repos/ccnmtl/django-pagetree","forks_url":"https://api.github.com/repos/ccnmtl/django-pagetree/forks","keys_url":"https://api.github.com/repos/ccnmtl/django-pagetree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ccnmtl/django-pagetree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ccnmtl/django-pagetree/teams","hooks_url":"https://api.github.com/repos/ccnmtl/django-pagetree/hooks","issue_events_url":"https://api.github.com/repos/ccnmtl/django-pagetree/issues/events{/number}","events_url":"https://api.github.com/repos/ccnmtl/django-pagetree/events","assignees_url":"https://api.github.com/repos/ccnmtl/django-pagetree/assignees{/user}","branches_url":"https://api.github.com/repos/ccnmtl/django-pagetree/branches{/branch}","tags_url":"https://api.github.com/repos/ccnmtl/django-pagetree/tags","blobs_url":"https://api.github.com/repos/ccnmtl/django-pagetree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ccnmtl/django-pagetree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ccnmtl/django-pagetree/git/refs{/sha}","trees_url":"https://api.github.com/repos/ccnmtl/django-pagetree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ccnmtl/django-pagetree/statuses/{sha}","languages_url":"https://api.github.com/repos/ccnmtl/django-pagetree/languages","stargazers_url":"https://api.github.com/repos/ccnmtl/django-pagetree/stargazers","contributors_url":"https://api.github.com/repos/ccnmtl/django-pagetree/contributors","subscribers_url":"https://api.github.com/repos/ccnmtl/django-pagetree/subscribers","subscription_url":"https://api.github.com/repos/ccnmtl/django-pagetree/subscription","commits_url":"https://api.github.com/repos/ccnmtl/django-pagetree/commits{/sha}","git_commits_url":"https://api.github.com/repos/ccnmtl/django-pagetree/git/commits{/sha}","comments_url":"https://api.github.com/repos/ccnmtl/django-pagetree/comments{/number}","issue_comment_url":"https://api.github.com/repos/ccnmtl/django-pagetree/issues/comments{/number}","contents_url":"https://api.github.com/repos/ccnmtl/django-pagetree/contents/{+path}","compare_url":"https://api.github.com/repos/ccnmtl/django-pagetree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ccnmtl/django-pagetree/merges","archive_url":"https://api.github.com/repos/ccnmtl/django-pagetree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ccnmtl/django-pagetree/downloads","issues_url":"https://api.github.com/repos/ccnmtl/django-pagetree/issues{/number}","pulls_url":"https://api.github.com/repos/ccnmtl/django-pagetree/pulls{/number}","milestones_url":"https://api.github.com/repos/ccnmtl/django-pagetree/milestones{/number}","notifications_url":"https://api.github.com/repos/ccnmtl/django-pagetree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ccnmtl/django-pagetree/labels{/name}","releases_url":"https://api.github.com/repos/ccnmtl/django-pagetree/releases{/id}","deployments_url":"https://api.github.com/repos/ccnmtl/django-pagetree/deployments","created_at":"2010-08-17T13:55:28Z","updated_at":"2016-01-15T07:48:50Z","pushed_at":"2016-06-20T14:04:37Z","git_url":"git://github.com/ccnmtl/django-pagetree.git","ssh_url":"git@github.com:ccnmtl/django-pagetree.git","clone_url":"https://github.com/ccnmtl/django-pagetree.git","svn_url":"https://github.com/ccnmtl/django-pagetree","homepage":"https://django-pagetree.readthedocs.org","size":1056,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":13,"forks":3,"open_issues":13,"watchers":10,"default_branch":"master"}},"base":{"label":"ccnmtl:master","ref":"master","sha":"c209e9357c03322d39c504342ebdfd204ed86c22","user":{"login":"ccnmtl","id":52456,"avatar_url":"https://avatars.githubusercontent.com/u/52456?v=3","gravatar_id":"","url":"https://api.github.com/users/ccnmtl","html_url":"https://github.com/ccnmtl","followers_url":"https://api.github.com/users/ccnmtl/followers","following_url":"https://api.github.com/users/ccnmtl/following{/other_user}","gists_url":"https://api.github.com/users/ccnmtl/gists{/gist_id}","starred_url":"https://api.github.com/users/ccnmtl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccnmtl/subscriptions","organizations_url":"https://api.github.com/users/ccnmtl/orgs","repos_url":"https://api.github.com/users/ccnmtl/repos","events_url":"https://api.github.com/users/ccnmtl/events{/privacy}","received_events_url":"https://api.github.com/users/ccnmtl/received_events","type":"Organization","site_admin":false},"repo":{"id":843712,"name":"django-pagetree","full_name":"ccnmtl/django-pagetree","owner":{"login":"ccnmtl","id":52456,"avatar_url":"https://avatars.githubusercontent.com/u/52456?v=3","gravatar_id":"","url":"https://api.github.com/users/ccnmtl","html_url":"https://github.com/ccnmtl","followers_url":"https://api.github.com/users/ccnmtl/followers","following_url":"https://api.github.com/users/ccnmtl/following{/other_user}","gists_url":"https://api.github.com/users/ccnmtl/gists{/gist_id}","starred_url":"https://api.github.com/users/ccnmtl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccnmtl/subscriptions","organizations_url":"https://api.github.com/users/ccnmtl/orgs","repos_url":"https://api.github.com/users/ccnmtl/repos","events_url":"https://api.github.com/users/ccnmtl/events{/privacy}","received_events_url":"https://api.github.com/users/ccnmtl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ccnmtl/django-pagetree","description":"CMS guts. Hierarchical tree of pages that are in turn made up of blocks.","fork":false,"url":"https://api.github.com/repos/ccnmtl/django-pagetree","forks_url":"https://api.github.com/repos/ccnmtl/django-pagetree/forks","keys_url":"https://api.github.com/repos/ccnmtl/django-pagetree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ccnmtl/django-pagetree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ccnmtl/django-pagetree/teams","hooks_url":"https://api.github.com/repos/ccnmtl/django-pagetree/hooks","issue_events_url":"https://api.github.com/repos/ccnmtl/django-pagetree/issues/events{/number}","events_url":"https://api.github.com/repos/ccnmtl/django-pagetree/events","assignees_url":"https://api.github.com/repos/ccnmtl/django-pagetree/assignees{/user}","branches_url":"https://api.github.com/repos/ccnmtl/django-pagetree/branches{/branch}","tags_url":"https://api.github.com/repos/ccnmtl/django-pagetree/tags","blobs_url":"https://api.github.com/repos/ccnmtl/django-pagetree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ccnmtl/django-pagetree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ccnmtl/django-pagetree/git/refs{/sha}","trees_url":"https://api.github.com/repos/ccnmtl/django-pagetree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ccnmtl/django-pagetree/statuses/{sha}","languages_url":"https://api.github.com/repos/ccnmtl/django-pagetree/languages","stargazers_url":"https://api.github.com/repos/ccnmtl/django-pagetree/stargazers","contributors_url":"https://api.github.com/repos/ccnmtl/django-pagetree/contributors","subscribers_url":"https://api.github.com/repos/ccnmtl/django-pagetree/subscribers","subscription_url":"https://api.github.com/repos/ccnmtl/django-pagetree/subscription","commits_url":"https://api.github.com/repos/ccnmtl/django-pagetree/commits{/sha}","git_commits_url":"https://api.github.com/repos/ccnmtl/django-pagetree/git/commits{/sha}","comments_url":"https://api.github.com/repos/ccnmtl/django-pagetree/comments{/number}","issue_comment_url":"https://api.github.com/repos/ccnmtl/django-pagetree/issues/comments{/number}","contents_url":"https://api.github.com/repos/ccnmtl/django-pagetree/contents/{+path}","compare_url":"https://api.github.com/repos/ccnmtl/django-pagetree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ccnmtl/django-pagetree/merges","archive_url":"https://api.github.com/repos/ccnmtl/django-pagetree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ccnmtl/django-pagetree/downloads","issues_url":"https://api.github.com/repos/ccnmtl/django-pagetree/issues{/number}","pulls_url":"https://api.github.com/repos/ccnmtl/django-pagetree/pulls{/number}","milestones_url":"https://api.github.com/repos/ccnmtl/django-pagetree/milestones{/number}","notifications_url":"https://api.github.com/repos/ccnmtl/django-pagetree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ccnmtl/django-pagetree/labels{/name}","releases_url":"https://api.github.com/repos/ccnmtl/django-pagetree/releases{/id}","deployments_url":"https://api.github.com/repos/ccnmtl/django-pagetree/deployments","created_at":"2010-08-17T13:55:28Z","updated_at":"2016-01-15T07:48:50Z","pushed_at":"2016-06-20T14:04:37Z","git_url":"git://github.com/ccnmtl/django-pagetree.git","ssh_url":"git@github.com:ccnmtl/django-pagetree.git","clone_url":"https://github.com/ccnmtl/django-pagetree.git","svn_url":"https://github.com/ccnmtl/django-pagetree","homepage":"https://django-pagetree.readthedocs.org","size":1056,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":13,"forks":3,"open_issues":13,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ccnmtl/django-pagetree/pulls/141"},"html":{"href":"https://github.com/ccnmtl/django-pagetree/pull/141"},"issue":{"href":"https://api.github.com/repos/ccnmtl/django-pagetree/issues/141"},"comments":{"href":"https://api.github.com/repos/ccnmtl/django-pagetree/issues/141/comments"},"review_comments":{"href":"https://api.github.com/repos/ccnmtl/django-pagetree/pulls/141/comments"},"review_comment":{"href":"https://api.github.com/repos/ccnmtl/django-pagetree/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ccnmtl/django-pagetree/pulls/141/commits"},"statuses":{"href":"https://api.github.com/repos/ccnmtl/django-pagetree/statuses/5e72efc92a80c32d439b7758d9b182a5134b95bd"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":34,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"thraxil"}}