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,