Changeset 7418
- Timestamp:
- 04/12/08 23:42:08 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/queryset-refactor/django/db/models/sql/query.py
r7344 r7418 794 794 int_opts = int_model._meta 795 795 alias = self.join((alias, int_opts.db_table, lhs_col, 796 int_opts.pk.column), exclusions=used) 796 int_opts.pk.column), exclusions=used, 797 promote=f.null) 797 798 else: 798 799 alias = root_alias 799 800 alias = self.join((alias, table, f.column, 800 f.rel.get_related_field().column), exclusions=used) 801 f.rel.get_related_field().column), exclusions=used, 802 promote=f.null) 801 803 used.add(alias) 802 804 self.select.extend([(alias, f2.column) django/branches/queryset-refactor/tests/regressiontests/queries/models.py
r7417 r7418 562 562 [<Author: a1>] 563 563 564 Bug #6981 565 >>> Tag.objects.select_related('parent').order_by('name') 566 [<Tag: t1>, <Tag: t2>, <Tag: t3>, <Tag: t4>, <Tag: t5>] 567 564 568 Bug #6180, #6203 565 569 >>> Item.objects.count()
