From f7f5edd50d03e8482f8a6da5fb5202b895d68cd6 Mon Sep 17 00:00:00 2001 From: Anssi Kääriäinen Date: Wed, 28 Jun 2017 06:23:37 +0000 Subject: Removed obsolete Query.tables attribute. Obsolete since Query.alias_map became an OrderedDict (refs #26522). --- tests/queries/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/queries/tests.py b/tests/queries/tests.py index b2d5ef5e95..75425f86ab 100644 --- a/tests/queries/tests.py +++ b/tests/queries/tests.py @@ -272,7 +272,7 @@ class Queries1Tests(TestCase): list(q2) combined_query = (q1 & q2).order_by('name').query self.assertEqual(len([ - t for t in combined_query.tables if combined_query.alias_refcount[t] + t for t in combined_query.alias_map if combined_query.alias_refcount[t] ]), 1) def test_order_by_join_unref(self): @@ -499,7 +499,7 @@ class Queries1Tests(TestCase): qs, ['', '', '', ''] ) - self.assertEqual(len(qs.query.tables), 1) + self.assertEqual(len(qs.query.alias_map), 1) def test_tickets_2874_3002(self): qs = Item.objects.select_related().order_by('note__note', 'name') -- cgit v1.3