1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Removed obsolete Query.tables attribute.

Obsolete since Query.alias_map became an OrderedDict (refs #26522).
This commit is contained in:
Anssi Kääriäinen
2017-06-28 06:23:37 +00:00
committed by Tim Graham
parent 550cb3a365
commit f7f5edd50d
5 changed files with 29 additions and 26 deletions

View File

@@ -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')