1
0
mirror of https://github.com/django/django.git synced 2025-07-05 18:29:11 +00:00

queryset-refactor: Added a FIXME for something I just remembered.

git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6869 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2007-12-03 21:23:15 +00:00
parent 8e6126fbc2
commit 0d7b6884df

View File

@ -738,6 +738,10 @@ class Query(object):
table = table_it.next()
if join == table and self.alias_map[join][ALIAS_REFCOUNT] > 1:
continue
# FIXME: Don't have to promote here (and in the other places in
# this block) if the join isn't nullable. So I should be
# checking this before promoting (avoiding left outer joins is
# important).
self.promote_alias(join)
if table != join:
self.promote_alias(table)