From 6b385919f16769816bbcd24e5e090f546f0ec072 Mon Sep 17 00:00:00 2001 From: Bertrand Bordage Date: Mon, 5 Oct 2015 20:20:43 +0200 Subject: [PATCH] Fixes tests on Django 1.7. --- cachalot/tests/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cachalot/tests/settings.py b/cachalot/tests/settings.py index 8fdaccd..578306c 100644 --- a/cachalot/tests/settings.py +++ b/cachalot/tests/settings.py @@ -145,9 +145,9 @@ class SettingsTestCase(TransactionTestCase): # However, if we only fetch data from the 'cachalot_testchild' # table, it’s cachable. with self.assertNumQueries(1): - list(TestChild.objects.only('public')) + list(TestChild.objects.values('public')) with self.assertNumQueries(0): - list(TestChild.objects.only('public')) + list(TestChild.objects.values('public')) def test_uncachable_tables(self): with self.settings(CACHALOT_UNCACHABLE_TABLES=('cachalot_test',)):