From 3cdfb47e9315672cdf06443b32feb62e1f0c0d42 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Tue, 2 Sep 2008 00:50:19 +0000 Subject: [PATCH] A typo fix that fortunately wasn't creating invalid SQL, just slightly less efficient than possible SQL in some odd cases (found via code inspection, not any particular failing example). git-svn-id: http://code.djangoproject.com/svn/django/trunk@8831 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/models/sql/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py index edaa223808..f15e4ac2f2 100644 --- a/django/db/models/sql/query.py +++ b/django/db/models/sql/query.py @@ -738,7 +738,7 @@ class Query(object): Returns True if the join was promoted. """ if ((unconditional or self.alias_map[alias][NULLABLE]) and - self.alias_map[alias] != self.LOUTER): + self.alias_map[alias][JOIN_TYPE] != self.LOUTER): data = list(self.alias_map[alias]) data[JOIN_TYPE] = self.LOUTER self.alias_map[alias] = tuple(data)