diff options
Diffstat (limited to 'django/db/models/sql')
| -rw-r--r-- | django/db/models/sql/query.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py index 131e97a438..4c473b6b7e 100644 --- a/django/db/models/sql/query.py +++ b/django/db/models/sql/query.py @@ -1380,8 +1380,8 @@ class BaseQuery(object): lhs_col = int_opts.parents[int_model].column dedupe = lhs_col in opts.duplicate_targets if dedupe: - avoid.update(self.dupe_avoidance.get(id(opts), lhs_col), - ()) + avoid.update(self.dupe_avoidance.get((id(opts), lhs_col), + ())) dupe_set.add((opts, lhs_col)) int_opts = int_model._meta alias = self.join((alias, int_opts.db_table, lhs_col, |
