summaryrefslogtreecommitdiff
path: root/django/db/models/sql
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2010-04-23 14:25:29 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2010-04-23 14:25:29 +0000
commitd9a0fd48ba1a4ac04c917099785d35700bef6ccc (patch)
treed2b2769f840d17f1573050b6fe6734b3ad2dfa9a /django/db/models/sql
parent5866875547515bd8a1f7082404414602cf112355 (diff)
Fixed #11764 -- Added a missing set of parentheses in a call calculating the select_related tables. Thanks to aurelio for the report and original patch, and wogan for the updated patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13019 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/models/sql')
-rw-r--r--django/db/models/sql/compiler.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py
index 8a24c62fe5..eaf2cd2569 100644
--- a/django/db/models/sql/compiler.py
+++ b/django/db/models/sql/compiler.py
@@ -546,8 +546,8 @@ class SQLCompiler(object):
lhs_col = int_opts.parents[int_model].column
dedupe = lhs_col in opts.duplicate_targets
if dedupe:
- avoid.update(self.query.dupe_avoidance.get(id(opts), lhs_col),
- ())
+ avoid.update(self.query.dupe_avoidance.get((id(opts), lhs_col),
+ ()))
dupe_set.add((opts, lhs_col))
int_opts = int_model._meta
alias = self.query.join((alias, int_opts.db_table, lhs_col,
@@ -620,8 +620,8 @@ class SQLCompiler(object):
lhs_col = int_opts.parents[int_model].column
dedupe = lhs_col in opts.duplicate_targets
if dedupe:
- avoid.update(self.query.dupe_avoidance.get(id(opts), lhs_col),
- ())
+ avoid.update((self.query.dupe_avoidance.get(id(opts), lhs_col),
+ ()))
dupe_set.add((opts, lhs_col))
int_opts = int_model._meta
alias = self.query.join(