mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Removed obsolete Query.tables attribute.
Obsolete since Query.alias_map became an OrderedDict (refs #26522).
This commit is contained in:
committed by
Tim Graham
parent
550cb3a365
commit
f7f5edd50d
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user