Ticket #11764: patch_against_11475.diff

File patch_against_11475.diff, 771 bytes (added by Aurelio Tinio, 15 years ago)
  • django/db/models/sql/query.py

    diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py
    index 23f99e4..60fe952 100644
    a b class BaseQuery(object):  
    13971397                    lhs_col = int_opts.parents[int_model].column
    13981398                    dedupe = lhs_col in opts.duplicate_targets
    13991399                    if dedupe:
    1400                         avoid.update(self.dupe_avoidance.get(id(opts), lhs_col),
    1401                                 ())
     1400                        avoid.update(self.dupe_avoidance.get((id(opts), lhs_col), ()))
    14021401                        dupe_set.add((opts, lhs_col))
    14031402                    int_opts = int_model._meta
    14041403                    alias = self.join((alias, int_opts.db_table, lhs_col,
Back to Top