summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-03-14 11:49:31 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-03-14 11:49:31 +0000
commit2f45deb72cf815cf78d5221a284918a5ef13e351 (patch)
tree39d86d28bd664f78e154ccd465cf3634155e1f46
parent59ac04a54dde3a489f7948b6e6d6170d74aa80c8 (diff)
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
-rw-r--r--django/db/models/sql/query.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py
index 6d36ac3e40..e582630bcc 100644
--- a/django/db/models/sql/query.py
+++ b/django/db/models/sql/query.py
@@ -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[:]