summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBertrand Bordage <bordage.bertrand@gmail.com>2017-06-03 20:17:22 (GMT)
committerBertrand Bordage <bordage.bertrand@gmail.com>2017-06-03 20:17:22 (GMT)
commitb812f708950f3f51faf9a559280fe09a5de39c20 (patch)
treef7de2b75d8a23ddfc99721b0b6b1387b99b706e2
parent84c53cd00def4fe422ba400ebb26c9079add37f6 (diff)
downloaddjango-cachalot-b812f708950f3f51faf9a559280fe09a5de39c20.zip
django-cachalot-b812f708950f3f51faf9a559280fe09a5de39c20.tar.gz
django-cachalot-b812f708950f3f51faf9a559280fe09a5de39c20.tar.bz2
Fixes an import on Django 1.8
-rw-r--r--cachalot/monkey_patch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cachalot/monkey_patch.py b/cachalot/monkey_patch.py
index 0ca0ef6..3e4f7f2 100644
--- a/cachalot/monkey_patch.py
+++ b/cachalot/monkey_patch.py
@@ -5,8 +5,8 @@ from collections import Iterable
from functools import wraps
from time import time
-from django.core.exceptions import EmptyResultSet
from django.db.backends.utils import CursorWrapper
+from django.db.models.query import EmptyResultSet
from django.db.models.signals import post_migrate
from django.db.models.sql.compiler import (
SQLCompiler, SQLInsertCompiler, SQLUpdateCompiler, SQLDeleteCompiler,