{"action":"created","issue":{"url":"https://api.github.com/repos/divio/django-cms/issues/4716","labels_url":"https://api.github.com/repos/divio/django-cms/issues/4716/labels{/name}","comments_url":"https://api.github.com/repos/divio/django-cms/issues/4716/comments","events_url":"https://api.github.com/repos/divio/django-cms/issues/4716/events","html_url":"https://github.com/divio/django-cms/pull/4716","id":117105846,"number":4716,"title":"Fresh install django-cms with CMS_RAW_ID_USERS set to True throws exception","user":{"login":"cstrap","id":146691,"avatar_url":"https://avatars.githubusercontent.com/u/146691?v=3","gravatar_id":"","url":"https://api.github.com/users/cstrap","html_url":"https://github.com/cstrap","followers_url":"https://api.github.com/users/cstrap/followers","following_url":"https://api.github.com/users/cstrap/following{/other_user}","gists_url":"https://api.github.com/users/cstrap/gists{/gist_id}","starred_url":"https://api.github.com/users/cstrap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cstrap/subscriptions","organizations_url":"https://api.github.com/users/cstrap/orgs","repos_url":"https://api.github.com/users/cstrap/repos","events_url":"https://api.github.com/users/cstrap/events{/privacy}","received_events_url":"https://api.github.com/users/cstrap/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-16T11:37:40Z","updated_at":"2015-11-16T15:29:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/divio/django-cms/pulls/4716","html_url":"https://github.com/divio/django-cms/pull/4716","diff_url":"https://github.com/divio/django-cms/pull/4716.diff","patch_url":"https://github.com/divio/django-cms/pull/4716.patch"},"body":"Environment:\r\n* Django 1.7+\r\n* django-cms 3.x+\r\n\r\nHow to reproduce the issue:\r\n* install django-cms via django CMS installer and choosing\r\n  * django and django-cms version according to environment above\r\n  * keep the default values and the installer does all \"boring things\"\r\n* Update `settings.py` with `CMS_PERMISSION = CMS_RAW_ID_USERS = True`\r\n* delete `project.db`\r\n* re-run `./manage.py migrate`\r\n\r\nThe result should be:\r\n```\r\n...\r\ndjango.db.utils.OperationalError: no such table: auth_user\r\n```\r\n\r\nSo, I provide a solution on this PR.\r\n\r\nMaybe I'm wrong, but I didn't found other ways in order to have a fresh install that starts with `CMS_PERMISSION` and `CMS_RAW_ID_USERS` set to `True`, except to comment out the `CMS_RAW_ID_USERS = True` and uncomment the row after migrations.\r\n\r\nAny suggestions are appreciated.\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/divio/django-cms/issues/comments/157067623","html_url":"https://github.com/divio/django-cms/pull/4716#issuecomment-157067623","issue_url":"https://api.github.com/repos/divio/django-cms/issues/4716","id":157067623,"user":{"login":"yakky","id":714711,"avatar_url":"https://avatars.githubusercontent.com/u/714711?v=3","gravatar_id":"","url":"https://api.github.com/users/yakky","html_url":"https://github.com/yakky","followers_url":"https://api.github.com/users/yakky/followers","following_url":"https://api.github.com/users/yakky/following{/other_user}","gists_url":"https://api.github.com/users/yakky/gists{/gist_id}","starred_url":"https://api.github.com/users/yakky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yakky/subscriptions","organizations_url":"https://api.github.com/users/yakky/orgs","repos_url":"https://api.github.com/users/yakky/repos","events_url":"https://api.github.com/users/yakky/events{/privacy}","received_events_url":"https://api.github.com/users/yakky/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T15:29:41Z","updated_at":"2015-11-16T15:29:41Z","body":"@cstrap looks good. I wonder why that function is triggered during a simple migration, though.\r\nI'd apply this  to 3.1 and forwardport to develop/3.2"}}