From b812f708950f3f51faf9a559280fe09a5de39c20 Mon Sep 17 00:00:00 2001 From: Bertrand Bordage Date: Sat, 3 Jun 2017 22:17:22 +0200 Subject: [PATCH] Fixes an import on Django 1.8 --- cachalot/monkey_patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,