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

queryset-refactor: Some goose left commented out code in [7240]. Nothing to see here. Move along.

git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7242 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2008-03-14 11:49:31 +00:00
parent 59ac04a54d
commit 2f45deb72c

View File

@ -361,14 +361,6 @@ class Query(object):
if hasattr(col, 'alias'):
aliases.append(col.alias)
elif self.default_cols:
#table_alias = self.tables[0]
#root_pk = self.model._meta.pk.column
#seen = {None: table_alias}
#for field, model in self.model._meta.get_fields_with_model():
# if model not in seen:
# seen[model] = self.join((table_alias, model._meta.db_table,
# root_pk, model._meta.pk.column))
# result.append('%s.%s' % (qn(seen[model]), qn(field.column)))
result = self.get_default_columns(lambda x, y: "%s.%s" % (qn(x), qn(y)))
aliases = result[:]