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

django.db.models.loading.get_models will be removed in Django 1.9 #33

Closed
jjmontalbo opened this issue Nov 19, 2015 · 2 comments
Closed

Comments

@jjmontalbo
Copy link

django.db.models.loading.get_models will be removed in Django 1.9. In my Django 1.8.6 installation, the following warning is thrown:

/home/xxx/.virtualenvs/xxx/local/lib/python2.7/site-packages/cachalot/panels.py:10: RemovedInDjango19Warning: The utilities in django.db.models.loading are deprecated in favor of the new application loading system.
  from django.db.models.loading import get_models

django.apps.apps.get_models is the equivalent function in Django 1.7+.

>> from django.db.models import loading
>> from django.apps import apps
>> apps.get_models() == loading.get_models()
True
@JockeTF
Copy link
Contributor

JockeTF commented Dec 11, 2015

Solved by #35.

@BertrandBordage
Copy link
Member

Indeed, I correctly replaced it everywhere except in the django-debug-toolbar panel. Thanks for this reporting!
Fixed by fcc77fa.

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

No branches or pull requests

3 participants