Ticket #11923: django-ticket-11923.patch
File django-ticket-11923.patch, 812 bytes (added by , 15 years ago) |
---|
-
django/db/models/sql/query.py
1397 1397 lhs_col = int_opts.parents[int_model].column 1398 1398 dedupe = lhs_col in opts.duplicate_targets 1399 1399 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), 1401 ())) 1402 1402 dupe_set.add((opts, lhs_col)) 1403 1403 int_opts = int_model._meta 1404 1404 alias = self.join((alias, int_opts.db_table, lhs_col,