-
-
Notifications
You must be signed in to change notification settings - Fork 795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: The field oauth2_provider.AccessToken.application was declared with a lazy reference #546
Comments
You first need to run a migration without your custom app model. |
Thanks @rhymiz |
I tried your advice and it worked. But now, i'm getting |
In |
How will this work in environments where application setup needs to be repeatable? For instance CI testing environments, etc. |
@douglashall during the setup process in CI environments, you could use some sort of |
I think this breaks down on squashing migrations. What purpose does running an initial migration serve? |
@iamhssingh I believe the initial version of toolkit did not have a swappable application model, so migrations needs to be applied in a specific order -- don't quote me on this, though. |
Hi there,
I'm running
makemigrations oauthy
on Django==1.11 after extendingAbstractApplication
but with no success. I keep getting the error:Here is my models.py:
I tried everything i've found on the web.. but most problems is about running
migrate
notmakemigrations
.Thanks in advance.
The text was updated successfully, but these errors were encountered: