summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAnssi Kääriäinen <anssi@holvi.com>2017-06-28 06:23:37 +0000
committerTim Graham <timograham@gmail.com>2017-06-29 11:09:11 -0400
commitf7f5edd50d03e8482f8a6da5fb5202b895d68cd6 (patch)
tree263f174fad202fce3d38e7a5c8b4e69b8a6e6310 /tests
parent550cb3a365dee4edfdd1563224d5304de2a57fda (diff)
Removed obsolete Query.tables attribute.
Obsolete since Query.alias_map became an OrderedDict (refs #26522).
Diffstat (limited to 'tests')
-rw-r--r--tests/queries/tests.py4
1 files changed, 2 insertions, 2 deletions
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,
['<Item: four>', '<Item: one>', '<Item: three>', '<Item: two>']
)
- 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')