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

DatabaseStatTracker in sql.py is not working #107

Closed
lenciel opened this issue Dec 10, 2014 · 2 comments
Closed

DatabaseStatTracker in sql.py is not working #107

lenciel opened this issue Dec 10, 2014 · 2 comments

Comments

@lenciel
Copy link

lenciel commented Dec 10, 2014

It takes me sometime to find the root cause. It seems in Django 1.7.x the django.db.backends.util has changed to django.db.backends.utils, which will break the injection of DatabaseStatTracker as util.CursorDebugWrapper.

A quick fix would be changing line 18 in sql.py to from django.db.backends import utils as util . I just create this issue to notify other users who had updated to Django 1.7.x and wish a formal fix could be released later.

@coagulant
Copy link
Contributor

I've submitted PR #105 with a fix earlier

@lenciel
Copy link
Author

lenciel commented Dec 10, 2014

Great, thanks a lot.

@lenciel lenciel closed this as completed Dec 10, 2014
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

No branches or pull requests

2 participants