{"action":"closed","number":18,"pull_request":{"url":"https://api.github.com/repos/revsys/django-tos/pulls/18","id":67064947,"html_url":"https://github.com/revsys/django-tos/pull/18","diff_url":"https://github.com/revsys/django-tos/pull/18.diff","patch_url":"https://github.com/revsys/django-tos/pull/18.patch","issue_url":"https://api.github.com/repos/revsys/django-tos/issues/18","number":18,"state":"closed","locked":false,"title":"Introduce migrations","user":{"login":"nicholasserra","id":512288,"avatar_url":"https://avatars.githubusercontent.com/u/512288?v=3","gravatar_id":"","url":"https://api.github.com/users/nicholasserra","html_url":"https://github.com/nicholasserra","followers_url":"https://api.github.com/users/nicholasserra/followers","following_url":"https://api.github.com/users/nicholasserra/following{/other_user}","gists_url":"https://api.github.com/users/nicholasserra/gists{/gist_id}","starred_url":"https://api.github.com/users/nicholasserra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicholasserra/subscriptions","organizations_url":"https://api.github.com/users/nicholasserra/orgs","repos_url":"https://api.github.com/users/nicholasserra/repos","events_url":"https://api.github.com/users/nicholasserra/events{/privacy}","received_events_url":"https://api.github.com/users/nicholasserra/received_events","type":"User","site_admin":false},"body":"Ran into an issue with missing tables when using tos from a clean database. This PR introduces an initial migration for the models.\r\n\r\nI believe this should be backwards compatible, as django will see this as initial and fake the migration if the tables exist. Only other concern is apps using Django < 1.7 with south migrations, but that's an edge case that we probably don't need to deal with, as they would need to be specifying SOUTH_MIGRATION_MODULES anyway.","created_at":"2016-04-19T18:18:03Z","updated_at":"2016-04-21T18:44:54Z","closed_at":"2016-04-21T18:44:54Z","merged_at":"2016-04-21T18:44:54Z","merge_commit_sha":"aca823ccd12fdb897b2827832458b3c34e91dee6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/revsys/django-tos/pulls/18/commits","review_comments_url":"https://api.github.com/repos/revsys/django-tos/pulls/18/comments","review_comment_url":"https://api.github.com/repos/revsys/django-tos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/revsys/django-tos/issues/18/comments","statuses_url":"https://api.github.com/repos/revsys/django-tos/statuses/e7536db1a1ba0519f47401aeaf5e0049fb2cea5f","head":{"label":"revsys:nicholasserra-migrations","ref":"nicholasserra-migrations","sha":"e7536db1a1ba0519f47401aeaf5e0049fb2cea5f","user":{"login":"revsys","id":308096,"avatar_url":"https://avatars.githubusercontent.com/u/308096?v=3","gravatar_id":"","url":"https://api.github.com/users/revsys","html_url":"https://github.com/revsys","followers_url":"https://api.github.com/users/revsys/followers","following_url":"https://api.github.com/users/revsys/following{/other_user}","gists_url":"https://api.github.com/users/revsys/gists{/gist_id}","starred_url":"https://api.github.com/users/revsys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/revsys/subscriptions","organizations_url":"https://api.github.com/users/revsys/orgs","repos_url":"https://api.github.com/users/revsys/repos","events_url":"https://api.github.com/users/revsys/events{/privacy}","received_events_url":"https://api.github.com/users/revsys/received_events","type":"Organization","site_admin":false},"repo":{"id":726785,"name":"django-tos","full_name":"revsys/django-tos","owner":{"login":"revsys","id":308096,"avatar_url":"https://avatars.githubusercontent.com/u/308096?v=3","gravatar_id":"","url":"https://api.github.com/users/revsys","html_url":"https://github.com/revsys","followers_url":"https://api.github.com/users/revsys/followers","following_url":"https://api.github.com/users/revsys/following{/other_user}","gists_url":"https://api.github.com/users/revsys/gists{/gist_id}","starred_url":"https://api.github.com/users/revsys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/revsys/subscriptions","organizations_url":"https://api.github.com/users/revsys/orgs","repos_url":"https://api.github.com/users/revsys/repos","events_url":"https://api.github.com/users/revsys/events{/privacy}","received_events_url":"https://api.github.com/users/revsys/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/revsys/django-tos","description":"A small app to ensure your users re-agree to Terms of Service changes","fork":false,"url":"https://api.github.com/repos/revsys/django-tos","forks_url":"https://api.github.com/repos/revsys/django-tos/forks","keys_url":"https://api.github.com/repos/revsys/django-tos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/revsys/django-tos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/revsys/django-tos/teams","hooks_url":"https://api.github.com/repos/revsys/django-tos/hooks","issue_events_url":"https://api.github.com/repos/revsys/django-tos/issues/events{/number}","events_url":"https://api.github.com/repos/revsys/django-tos/events","assignees_url":"https://api.github.com/repos/revsys/django-tos/assignees{/user}","branches_url":"https://api.github.com/repos/revsys/django-tos/branches{/branch}","tags_url":"https://api.github.com/repos/revsys/django-tos/tags","blobs_url":"https://api.github.com/repos/revsys/django-tos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/revsys/django-tos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/revsys/django-tos/git/refs{/sha}","trees_url":"https://api.github.com/repos/revsys/django-tos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/revsys/django-tos/statuses/{sha}","languages_url":"https://api.github.com/repos/revsys/django-tos/languages","stargazers_url":"https://api.github.com/repos/revsys/django-tos/stargazers","contributors_url":"https://api.github.com/repos/revsys/django-tos/contributors","subscribers_url":"https://api.github.com/repos/revsys/django-tos/subscribers","subscription_url":"https://api.github.com/repos/revsys/django-tos/subscription","commits_url":"https://api.github.com/repos/revsys/django-tos/commits{/sha}","git_commits_url":"https://api.github.com/repos/revsys/django-tos/git/commits{/sha}","comments_url":"https://api.github.com/repos/revsys/django-tos/comments{/number}","issue_comment_url":"https://api.github.com/repos/revsys/django-tos/issues/comments{/number}","contents_url":"https://api.github.com/repos/revsys/django-tos/contents/{+path}","compare_url":"https://api.github.com/repos/revsys/django-tos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/revsys/django-tos/merges","archive_url":"https://api.github.com/repos/revsys/django-tos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/revsys/django-tos/downloads","issues_url":"https://api.github.com/repos/revsys/django-tos/issues{/number}","pulls_url":"https://api.github.com/repos/revsys/django-tos/pulls{/number}","milestones_url":"https://api.github.com/repos/revsys/django-tos/milestones{/number}","notifications_url":"https://api.github.com/repos/revsys/django-tos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/revsys/django-tos/labels{/name}","releases_url":"https://api.github.com/repos/revsys/django-tos/releases{/id}","deployments_url":"https://api.github.com/repos/revsys/django-tos/deployments","created_at":"2010-06-17T21:59:58Z","updated_at":"2016-03-31T00:41:09Z","pushed_at":"2016-04-21T18:44:54Z","git_url":"git://github.com/revsys/django-tos.git","ssh_url":"git@github.com:revsys/django-tos.git","clone_url":"https://github.com/revsys/django-tos.git","svn_url":"https://github.com/revsys/django-tos","homepage":"","size":71,"stargazers_count":81,"watchers_count":81,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":0,"forks":18,"open_issues":0,"watchers":81,"default_branch":"master"}},"base":{"label":"revsys:master","ref":"master","sha":"557d4d59844e346378ae0af6533eae13d8eb1a5b","user":{"login":"revsys","id":308096,"avatar_url":"https://avatars.githubusercontent.com/u/308096?v=3","gravatar_id":"","url":"https://api.github.com/users/revsys","html_url":"https://github.com/revsys","followers_url":"https://api.github.com/users/revsys/followers","following_url":"https://api.github.com/users/revsys/following{/other_user}","gists_url":"https://api.github.com/users/revsys/gists{/gist_id}","starred_url":"https://api.github.com/users/revsys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/revsys/subscriptions","organizations_url":"https://api.github.com/users/revsys/orgs","repos_url":"https://api.github.com/users/revsys/repos","events_url":"https://api.github.com/users/revsys/events{/privacy}","received_events_url":"https://api.github.com/users/revsys/received_events","type":"Organization","site_admin":false},"repo":{"id":726785,"name":"django-tos","full_name":"revsys/django-tos","owner":{"login":"revsys","id":308096,"avatar_url":"https://avatars.githubusercontent.com/u/308096?v=3","gravatar_id":"","url":"https://api.github.com/users/revsys","html_url":"https://github.com/revsys","followers_url":"https://api.github.com/users/revsys/followers","following_url":"https://api.github.com/users/revsys/following{/other_user}","gists_url":"https://api.github.com/users/revsys/gists{/gist_id}","starred_url":"https://api.github.com/users/revsys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/revsys/subscriptions","organizations_url":"https://api.github.com/users/revsys/orgs","repos_url":"https://api.github.com/users/revsys/repos","events_url":"https://api.github.com/users/revsys/events{/privacy}","received_events_url":"https://api.github.com/users/revsys/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/revsys/django-tos","description":"A small app to ensure your users re-agree to Terms of Service changes","fork":false,"url":"https://api.github.com/repos/revsys/django-tos","forks_url":"https://api.github.com/repos/revsys/django-tos/forks","keys_url":"https://api.github.com/repos/revsys/django-tos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/revsys/django-tos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/revsys/django-tos/teams","hooks_url":"https://api.github.com/repos/revsys/django-tos/hooks","issue_events_url":"https://api.github.com/repos/revsys/django-tos/issues/events{/number}","events_url":"https://api.github.com/repos/revsys/django-tos/events","assignees_url":"https://api.github.com/repos/revsys/django-tos/assignees{/user}","branches_url":"https://api.github.com/repos/revsys/django-tos/branches{/branch}","tags_url":"https://api.github.com/repos/revsys/django-tos/tags","blobs_url":"https://api.github.com/repos/revsys/django-tos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/revsys/django-tos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/revsys/django-tos/git/refs{/sha}","trees_url":"https://api.github.com/repos/revsys/django-tos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/revsys/django-tos/statuses/{sha}","languages_url":"https://api.github.com/repos/revsys/django-tos/languages","stargazers_url":"https://api.github.com/repos/revsys/django-tos/stargazers","contributors_url":"https://api.github.com/repos/revsys/django-tos/contributors","subscribers_url":"https://api.github.com/repos/revsys/django-tos/subscribers","subscription_url":"https://api.github.com/repos/revsys/django-tos/subscription","commits_url":"https://api.github.com/repos/revsys/django-tos/commits{/sha}","git_commits_url":"https://api.github.com/repos/revsys/django-tos/git/commits{/sha}","comments_url":"https://api.github.com/repos/revsys/django-tos/comments{/number}","issue_comment_url":"https://api.github.com/repos/revsys/django-tos/issues/comments{/number}","contents_url":"https://api.github.com/repos/revsys/django-tos/contents/{+path}","compare_url":"https://api.github.com/repos/revsys/django-tos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/revsys/django-tos/merges","archive_url":"https://api.github.com/repos/revsys/django-tos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/revsys/django-tos/downloads","issues_url":"https://api.github.com/repos/revsys/django-tos/issues{/number}","pulls_url":"https://api.github.com/repos/revsys/django-tos/pulls{/number}","milestones_url":"https://api.github.com/repos/revsys/django-tos/milestones{/number}","notifications_url":"https://api.github.com/repos/revsys/django-tos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/revsys/django-tos/labels{/name}","releases_url":"https://api.github.com/repos/revsys/django-tos/releases{/id}","deployments_url":"https://api.github.com/repos/revsys/django-tos/deployments","created_at":"2010-06-17T21:59:58Z","updated_at":"2016-03-31T00:41:09Z","pushed_at":"2016-04-21T18:44:54Z","git_url":"git://github.com/revsys/django-tos.git","ssh_url":"git@github.com:revsys/django-tos.git","clone_url":"https://github.com/revsys/django-tos.git","svn_url":"https://github.com/revsys/django-tos","homepage":"","size":71,"stargazers_count":81,"watchers_count":81,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":0,"forks":18,"open_issues":0,"watchers":81,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/revsys/django-tos/pulls/18"},"html":{"href":"https://github.com/revsys/django-tos/pull/18"},"issue":{"href":"https://api.github.com/repos/revsys/django-tos/issues/18"},"comments":{"href":"https://api.github.com/repos/revsys/django-tos/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/revsys/django-tos/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/revsys/django-tos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/revsys/django-tos/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/revsys/django-tos/statuses/e7536db1a1ba0519f47401aeaf5e0049fb2cea5f"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"nicholasserra","id":512288,"avatar_url":"https://avatars.githubusercontent.com/u/512288?v=3","gravatar_id":"","url":"https://api.github.com/users/nicholasserra","html_url":"https://github.com/nicholasserra","followers_url":"https://api.github.com/users/nicholasserra/followers","following_url":"https://api.github.com/users/nicholasserra/following{/other_user}","gists_url":"https://api.github.com/users/nicholasserra/gists{/gist_id}","starred_url":"https://api.github.com/users/nicholasserra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicholasserra/subscriptions","organizations_url":"https://api.github.com/users/nicholasserra/orgs","repos_url":"https://api.github.com/users/nicholasserra/repos","events_url":"https://api.github.com/users/nicholasserra/events{/privacy}","received_events_url":"https://api.github.com/users/nicholasserra/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":1,"additions":48,"deletions":0,"changed_files":2}}