Skip to content
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

delaying import of ContentType until django is fully loaded #688

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

landonsilla
Copy link

I am attempting to upgrade to Django 3.2.14 and this is now causing a problem.
Screen Shot 2022-08-12 at 6 34 03 PM
It seems that it's trying to load the ContentType model before it's fully loaded. So I'm changing the code here such that the model is loaded as late as possible, after django is fully initialized.

Is this a good idea? Is there a better way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant