From 111dadafb010bea881c8de3801be6ed0664dfd0f Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sat, 11 Feb 2006 03:15:36 +0000 Subject: [PATCH] magic-removal: Fixed a problem with query join order caused by a join dictionary being instantiated as a dict(), rather than a SortedDict(). git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2303 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/models/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/models/query.py b/django/db/models/query.py index 1cacd9b59e..f30c8397bd 100644 --- a/django/db/models/query.py +++ b/django/db/models/query.py @@ -453,7 +453,7 @@ class QOperator: self.args = args def get_sql(self, opts): - tables, joins, where, params = [], {}, [], [] + tables, joins, where, params = [], SortedDict(), [], [] for val in self.args: tables2, joins2, where2, params2 = val.get_sql(opts) tables.extend(tables2)