{"action":"opened","number":3,"pull_request":{"url":"https://api.github.com/repos/eofs/django-oauth-api/pulls/3","id":64812632,"html_url":"https://github.com/eofs/django-oauth-api/pull/3","diff_url":"https://github.com/eofs/django-oauth-api/pull/3.diff","patch_url":"https://github.com/eofs/django-oauth-api/pull/3.patch","issue_url":"https://api.github.com/repos/eofs/django-oauth-api/issues/3","number":3,"state":"open","locked":false,"title":"Added migration file for swappable Application model.","user":{"login":"AgentUnderMulta","id":8856986,"avatar_url":"https://avatars.githubusercontent.com/u/8856986?v=3","gravatar_id":"","url":"https://api.github.com/users/AgentUnderMulta","html_url":"https://github.com/AgentUnderMulta","followers_url":"https://api.github.com/users/AgentUnderMulta/followers","following_url":"https://api.github.com/users/AgentUnderMulta/following{/other_user}","gists_url":"https://api.github.com/users/AgentUnderMulta/gists{/gist_id}","starred_url":"https://api.github.com/users/AgentUnderMulta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgentUnderMulta/subscriptions","organizations_url":"https://api.github.com/users/AgentUnderMulta/orgs","repos_url":"https://api.github.com/users/AgentUnderMulta/repos","events_url":"https://api.github.com/users/AgentUnderMulta/events{/privacy}","received_events_url":"https://api.github.com/users/AgentUnderMulta/received_events","type":"User","site_admin":false},"body":"Even if the user can override the `oauth_api_settings.APPLICATION_MODEL` attribute in the project settings to swap the `Application` model to another, the other tables that have a `ForeignKey` relation to the `Application` model had the model definition hardcoded instead of using the `migrations.swappable_dependency()` functionality, resulting in broken database layer. Added a migration file to fix this, ran `python runtests.py`:\r\n\r\n`Ran 96 tests in 7.962s`\r\n\r\n`OK`","created_at":"2016-03-31T15:45:47Z","updated_at":"2016-03-31T15:45:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/eofs/django-oauth-api/pulls/3/commits","review_comments_url":"https://api.github.com/repos/eofs/django-oauth-api/pulls/3/comments","review_comment_url":"https://api.github.com/repos/eofs/django-oauth-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eofs/django-oauth-api/issues/3/comments","statuses_url":"https://api.github.com/repos/eofs/django-oauth-api/statuses/218bc19d54489d0f0f7c8ddb9460940d93fee6f3","head":{"label":"AgentUnderMulta:master","ref":"master","sha":"218bc19d54489d0f0f7c8ddb9460940d93fee6f3","user":{"login":"AgentUnderMulta","id":8856986,"avatar_url":"https://avatars.githubusercontent.com/u/8856986?v=3","gravatar_id":"","url":"https://api.github.com/users/AgentUnderMulta","html_url":"https://github.com/AgentUnderMulta","followers_url":"https://api.github.com/users/AgentUnderMulta/followers","following_url":"https://api.github.com/users/AgentUnderMulta/following{/other_user}","gists_url":"https://api.github.com/users/AgentUnderMulta/gists{/gist_id}","starred_url":"https://api.github.com/users/AgentUnderMulta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgentUnderMulta/subscriptions","organizations_url":"https://api.github.com/users/AgentUnderMulta/orgs","repos_url":"https://api.github.com/users/AgentUnderMulta/repos","events_url":"https://api.github.com/users/AgentUnderMulta/events{/privacy}","received_events_url":"https://api.github.com/users/AgentUnderMulta/received_events","type":"User","site_admin":false},"repo":{"id":45187090,"name":"django-oauth-api","full_name":"AgentUnderMulta/django-oauth-api","owner":{"login":"AgentUnderMulta","id":8856986,"avatar_url":"https://avatars.githubusercontent.com/u/8856986?v=3","gravatar_id":"","url":"https://api.github.com/users/AgentUnderMulta","html_url":"https://github.com/AgentUnderMulta","followers_url":"https://api.github.com/users/AgentUnderMulta/followers","following_url":"https://api.github.com/users/AgentUnderMulta/following{/other_user}","gists_url":"https://api.github.com/users/AgentUnderMulta/gists{/gist_id}","starred_url":"https://api.github.com/users/AgentUnderMulta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgentUnderMulta/subscriptions","organizations_url":"https://api.github.com/users/AgentUnderMulta/orgs","repos_url":"https://api.github.com/users/AgentUnderMulta/repos","events_url":"https://api.github.com/users/AgentUnderMulta/events{/privacy}","received_events_url":"https://api.github.com/users/AgentUnderMulta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AgentUnderMulta/django-oauth-api","description":"This package provides OAuth API using Django Rest Framework","fork":true,"url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api","forks_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/forks","keys_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/teams","hooks_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/hooks","issue_events_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/issues/events{/number}","events_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/events","assignees_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/assignees{/user}","branches_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/branches{/branch}","tags_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/tags","blobs_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/statuses/{sha}","languages_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/languages","stargazers_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/stargazers","contributors_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/contributors","subscribers_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/subscribers","subscription_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/subscription","commits_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/contents/{+path}","compare_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/merges","archive_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/downloads","issues_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/issues{/number}","pulls_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/pulls{/number}","milestones_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/milestones{/number}","notifications_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/labels{/name}","releases_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/releases{/id}","deployments_url":"https://api.github.com/repos/AgentUnderMulta/django-oauth-api/deployments","created_at":"2015-10-29T14:07:52Z","updated_at":"2016-02-15T14:20:20Z","pushed_at":"2016-03-31T15:38:52Z","git_url":"git://github.com/AgentUnderMulta/django-oauth-api.git","ssh_url":"git@github.com:AgentUnderMulta/django-oauth-api.git","clone_url":"https://github.com/AgentUnderMulta/django-oauth-api.git","svn_url":"https://github.com/AgentUnderMulta/django-oauth-api","homepage":null,"size":98,"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":"eofs:master","ref":"master","sha":"84edcfb131414207170c1c6b1b387db86b0a54c6","user":{"login":"eofs","id":316612,"avatar_url":"https://avatars.githubusercontent.com/u/316612?v=3","gravatar_id":"","url":"https://api.github.com/users/eofs","html_url":"https://github.com/eofs","followers_url":"https://api.github.com/users/eofs/followers","following_url":"https://api.github.com/users/eofs/following{/other_user}","gists_url":"https://api.github.com/users/eofs/gists{/gist_id}","starred_url":"https://api.github.com/users/eofs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eofs/subscriptions","organizations_url":"https://api.github.com/users/eofs/orgs","repos_url":"https://api.github.com/users/eofs/repos","events_url":"https://api.github.com/users/eofs/events{/privacy}","received_events_url":"https://api.github.com/users/eofs/received_events","type":"User","site_admin":false},"repo":{"id":12454397,"name":"django-oauth-api","full_name":"eofs/django-oauth-api","owner":{"login":"eofs","id":316612,"avatar_url":"https://avatars.githubusercontent.com/u/316612?v=3","gravatar_id":"","url":"https://api.github.com/users/eofs","html_url":"https://github.com/eofs","followers_url":"https://api.github.com/users/eofs/followers","following_url":"https://api.github.com/users/eofs/following{/other_user}","gists_url":"https://api.github.com/users/eofs/gists{/gist_id}","starred_url":"https://api.github.com/users/eofs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eofs/subscriptions","organizations_url":"https://api.github.com/users/eofs/orgs","repos_url":"https://api.github.com/users/eofs/repos","events_url":"https://api.github.com/users/eofs/events{/privacy}","received_events_url":"https://api.github.com/users/eofs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eofs/django-oauth-api","description":"This package provides OAuth API using Django Rest Framework","fork":false,"url":"https://api.github.com/repos/eofs/django-oauth-api","forks_url":"https://api.github.com/repos/eofs/django-oauth-api/forks","keys_url":"https://api.github.com/repos/eofs/django-oauth-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eofs/django-oauth-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eofs/django-oauth-api/teams","hooks_url":"https://api.github.com/repos/eofs/django-oauth-api/hooks","issue_events_url":"https://api.github.com/repos/eofs/django-oauth-api/issues/events{/number}","events_url":"https://api.github.com/repos/eofs/django-oauth-api/events","assignees_url":"https://api.github.com/repos/eofs/django-oauth-api/assignees{/user}","branches_url":"https://api.github.com/repos/eofs/django-oauth-api/branches{/branch}","tags_url":"https://api.github.com/repos/eofs/django-oauth-api/tags","blobs_url":"https://api.github.com/repos/eofs/django-oauth-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eofs/django-oauth-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eofs/django-oauth-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/eofs/django-oauth-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eofs/django-oauth-api/statuses/{sha}","languages_url":"https://api.github.com/repos/eofs/django-oauth-api/languages","stargazers_url":"https://api.github.com/repos/eofs/django-oauth-api/stargazers","contributors_url":"https://api.github.com/repos/eofs/django-oauth-api/contributors","subscribers_url":"https://api.github.com/repos/eofs/django-oauth-api/subscribers","subscription_url":"https://api.github.com/repos/eofs/django-oauth-api/subscription","commits_url":"https://api.github.com/repos/eofs/django-oauth-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/eofs/django-oauth-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/eofs/django-oauth-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/eofs/django-oauth-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/eofs/django-oauth-api/contents/{+path}","compare_url":"https://api.github.com/repos/eofs/django-oauth-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eofs/django-oauth-api/merges","archive_url":"https://api.github.com/repos/eofs/django-oauth-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eofs/django-oauth-api/downloads","issues_url":"https://api.github.com/repos/eofs/django-oauth-api/issues{/number}","pulls_url":"https://api.github.com/repos/eofs/django-oauth-api/pulls{/number}","milestones_url":"https://api.github.com/repos/eofs/django-oauth-api/milestones{/number}","notifications_url":"https://api.github.com/repos/eofs/django-oauth-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eofs/django-oauth-api/labels{/name}","releases_url":"https://api.github.com/repos/eofs/django-oauth-api/releases{/id}","deployments_url":"https://api.github.com/repos/eofs/django-oauth-api/deployments","created_at":"2013-08-29T07:40:53Z","updated_at":"2016-02-17T19:51:25Z","pushed_at":"2016-02-17T19:57:44Z","git_url":"git://github.com/eofs/django-oauth-api.git","ssh_url":"git@github.com:eofs/django-oauth-api.git","clone_url":"https://github.com/eofs/django-oauth-api.git","svn_url":"https://github.com/eofs/django-oauth-api","homepage":null,"size":98,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eofs/django-oauth-api/pulls/3"},"html":{"href":"https://github.com/eofs/django-oauth-api/pull/3"},"issue":{"href":"https://api.github.com/repos/eofs/django-oauth-api/issues/3"},"comments":{"href":"https://api.github.com/repos/eofs/django-oauth-api/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/eofs/django-oauth-api/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/eofs/django-oauth-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eofs/django-oauth-api/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/eofs/django-oauth-api/statuses/218bc19d54489d0f0f7c8ddb9460940d93fee6f3"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":34,"deletions":0,"changed_files":1}}