self = <django.db.backends.utils.CursorWrapper object at 0x71fdb6c9da50>
sql = 'ALTER TABLE "oauth2_provider_devicegrant" ADD CONSTRAINT "oauth2_provider_devicegrant_user_id_1cec5156_fk_users_user_id" FOREIGN KEY ("user_id") REFERENCES "users_user" ("id") DEFERRABLE INITIALLY DEFERRED', params = None
ignored_wrapper_args = (False, {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x71fdb6c9da50>})
django.db.utils.ProgrammingError: relation "users_user" does not exist
probably related to https://github.com/django-oauth/django-oauth-toolkit/pull/1539/changes#diff-088fe693df59fbf5e6f15b10cbbb31dd38e3b146a93bdfa1e7070cb47fe1d7db
This is while running pytest so I guess db migration strat from scratch (unless you use --reusse-db. The user table migration should be already run (it's the first migration), maybe then it's INSTALLED_APPS order ?
django.db.utils.ProgrammingError: relation "users_user" does not existprobably related to https://github.com/django-oauth/django-oauth-toolkit/pull/1539/changes#diff-088fe693df59fbf5e6f15b10cbbb31dd38e3b146a93bdfa1e7070cb47fe1d7db
This is while running pytest so I guess db migration strat from scratch (unless you use
--reusse-db. The user table migration should be already run (it's the first migration), maybe then it'sINSTALLED_APPSorder ?