{"action":"opened","issue":{"url":"https://api.github.com/repos/sehmaschine/django-grappelli/issues/747","repository_url":"https://api.github.com/repos/sehmaschine/django-grappelli","labels_url":"https://api.github.com/repos/sehmaschine/django-grappelli/issues/747/labels{/name}","comments_url":"https://api.github.com/repos/sehmaschine/django-grappelli/issues/747/comments","events_url":"https://api.github.com/repos/sehmaschine/django-grappelli/issues/747/events","html_url":"https://github.com/sehmaschine/django-grappelli/issues/747","id":149404306,"number":747,"title":"Tests throw a ProgrammingError","user":{"login":"paolostefan","id":1904907,"avatar_url":"https://avatars.githubusercontent.com/u/1904907?v=3","gravatar_id":"","url":"https://api.github.com/users/paolostefan","html_url":"https://github.com/paolostefan","followers_url":"https://api.github.com/users/paolostefan/followers","following_url":"https://api.github.com/users/paolostefan/following{/other_user}","gists_url":"https://api.github.com/users/paolostefan/gists{/gist_id}","starred_url":"https://api.github.com/users/paolostefan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paolostefan/subscriptions","organizations_url":"https://api.github.com/users/paolostefan/orgs","repos_url":"https://api.github.com/users/paolostefan/repos","events_url":"https://api.github.com/users/paolostefan/events{/privacy}","received_events_url":"https://api.github.com/users/paolostefan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-19T09:37:31Z","updated_at":"2016-04-19T09:37:31Z","closed_at":null,"body":"VERSIONS: Grappelli 2.8.1, Django 1.9.5\r\nSTATICFILES: OK\r\nJAVASCRIPTS: OK (not relevant)\r\nCUSTOMIZATIONS: Custom user model, without \"is_staff\" field\r\n\r\nThe command:\r\n\r\n`./manage.py test grappelli.tests -v2`\r\n\r\nalways throws the following error: \r\n\r\n`django.db.utils.ProgrammingError: relation \"users_mycustomuser\" does not exist`\r\n\r\nThe error happens after these output lines:\r\n\r\n```\r\n  Creating tables...\r\n    Creating table grappelli_category\r\n    Creating table grappelli_entry\r\n    Creating table corsheaders_corsmodel\r\n    Running deferred SQL...\r\nTraceback (most recent call last):\r\n```\r\nMy own apps' tests are running fine (so I think it's a problem with Grappelli). Anyway, the admin interface works just fine. I found out this issue after I tried to activate GRAPPELLI_SWITCH_USER, which threw an error itself and refused to work (so, I ran the tests which failed).\r\n\r\nMy `pip freeze`:\r\n```\r\nDjango==1.9.5\r\ndjango-allauth==0.24.1\r\ndjango-braces==1.8.1\r\ndjango-cors-headers==1.1.0\r\ndjango-countries==3.4.1\r\ndjango-debug-toolbar==1.4\r\ndjango-filter==0.11.0\r\ndjango-friendship==1.3.1\r\ndjango-grappelli==2.8.1\r\ndjango-hvad==1.4.0\r\ndjango-rest-auth==0.7.0\r\ndjangorestframework==3.3.3\r\ndjangorestframework-gis==0.10\r\necdsa==0.13\r\nFabric==1.10.2\r\noauthlib==1.0.3\r\nparamiko==1.16.0\r\nPillow==3.1.1\r\npsycopg2==2.6.1\r\npycrypto==2.6.1\r\npython-openid==2.2.5\r\nPyYAML==3.11\r\nrequests==2.8.1\r\nrequests-oauthlib==0.5.0\r\nsix==1.10.0\r\nsqlparse==0.1.18\r\n```"}}