summaryrefslogtreecommitdiff
path: root/django/db/models/sql/constants.py
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-09-02 02:16:41 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-09-02 02:16:41 +0000
commit12f625990392d49018d0397a7c7bf55286f9b212 (patch)
treee2f8477ce14a7e82962d4759265f25fb43a826ec /django/db/models/sql/constants.py
parent3cdfb47e9315672cdf06443b32feb62e1f0c0d42 (diff)
Fixed #8439 -- Complex combinations of Q-objects (using both conjunctions and
disjunctions) were producing incorrect SQL when nullable relations were involved. This fixes that. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8832 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/models/sql/constants.py')
-rw-r--r--django/db/models/sql/constants.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/db/models/sql/constants.py b/django/db/models/sql/constants.py
index 129a592b31..e14816c965 100644
--- a/django/db/models/sql/constants.py
+++ b/django/db/models/sql/constants.py
@@ -15,7 +15,8 @@ GET_ITERATOR_CHUNK_SIZE = 100
LOOKUP_SEP = '__'
# Constants to make looking up tuple values clearer.
-# Join lists
+# Join lists (indexes into the tuples that are values in the alias_map
+# dictionary in the Query class).
TABLE_NAME = 0
RHS_ALIAS = 1
JOIN_TYPE = 2