{"action":"created","issue":{"url":"https://api.github.com/repos/omab/python-social-auth/issues/936","repository_url":"https://api.github.com/repos/omab/python-social-auth","labels_url":"https://api.github.com/repos/omab/python-social-auth/issues/936/labels{/name}","comments_url":"https://api.github.com/repos/omab/python-social-auth/issues/936/comments","events_url":"https://api.github.com/repos/omab/python-social-auth/issues/936/events","html_url":"https://github.com/omab/python-social-auth/pull/936","id":160810787,"number":936,"title":"django migration should respect SOCIAL_AUTH_USER_MODEL setting","user":{"login":"max-arnold","id":370942,"avatar_url":"https://avatars.githubusercontent.com/u/370942?v=3","gravatar_id":"","url":"https://api.github.com/users/max-arnold","html_url":"https://github.com/max-arnold","followers_url":"https://api.github.com/users/max-arnold/followers","following_url":"https://api.github.com/users/max-arnold/following{/other_user}","gists_url":"https://api.github.com/users/max-arnold/gists{/gist_id}","starred_url":"https://api.github.com/users/max-arnold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/max-arnold/subscriptions","organizations_url":"https://api.github.com/users/max-arnold/orgs","repos_url":"https://api.github.com/users/max-arnold/repos","events_url":"https://api.github.com/users/max-arnold/events{/privacy}","received_events_url":"https://api.github.com/users/max-arnold/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-17T04:39:50Z","updated_at":"2016-07-13T03:41:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/omab/python-social-auth/pulls/936","html_url":"https://github.com/omab/python-social-auth/pull/936","diff_url":"https://github.com/omab/python-social-auth/pull/936.diff","patch_url":"https://github.com/omab/python-social-auth/pull/936.patch"},"body":"We use stock `auth.User` model for administrators (without social auth) and custom `UserAccount` model for other types of users with enabled social auth. So we have `SOCIAL_AUTH_USER_MODEL = 'customauth.UserAccount'`.\r\n\r\nThe patch fixes the following failure:\r\n\r\n```\r\n./manage.py migrate --fake-initial\r\n\r\ndjango.db.utils.IntegrityError: insert or update on table \"social_auth_usersocialauth\" violates foreign key constraint \"social_auth_usersocialauth_user_id_17d28448_fk_auth_user_id\"\r\nDETAIL:  Key (user_id)=(225873) is not present in table \"auth_user\".\r\n```"},"comment":{"url":"https://api.github.com/repos/omab/python-social-auth/issues/comments/232248743","html_url":"https://github.com/omab/python-social-auth/pull/936#issuecomment-232248743","issue_url":"https://api.github.com/repos/omab/python-social-auth/issues/936","id":232248743,"user":{"login":"max-arnold","id":370942,"avatar_url":"https://avatars.githubusercontent.com/u/370942?v=3","gravatar_id":"","url":"https://api.github.com/users/max-arnold","html_url":"https://github.com/max-arnold","followers_url":"https://api.github.com/users/max-arnold/followers","following_url":"https://api.github.com/users/max-arnold/following{/other_user}","gists_url":"https://api.github.com/users/max-arnold/gists{/gist_id}","starred_url":"https://api.github.com/users/max-arnold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/max-arnold/subscriptions","organizations_url":"https://api.github.com/users/max-arnold/orgs","repos_url":"https://api.github.com/users/max-arnold/repos","events_url":"https://api.github.com/users/max-arnold/events{/privacy}","received_events_url":"https://api.github.com/users/max-arnold/received_events","type":"User","site_admin":false},"created_at":"2016-07-13T03:41:50Z","updated_at":"2016-07-13T03:41:50Z","body":"Do you have any objections against this patch? To me the fix looks obvious (bundled south migrations have something similar: https://github.com/omab/python-social-auth/blob/master/social/apps/django_app/default/south_migrations/__init__.py)"}}
{"actor":{"display_login":"max-arnold"}}