mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
[soc2009/multidb] Removed the as_sql_takes_connection option from various classes, it was originally just to allow the tests to pass while the code base was being migrated, it was not meant to remain
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11075 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -729,10 +729,7 @@ class BaseQuery(object):
|
||||
aliases.add(r)
|
||||
col_aliases.add(col[1])
|
||||
else:
|
||||
if getattr(col, 'as_sql_takes_connection', False):
|
||||
result.append(col.as_sql(qn, self.connection))
|
||||
else:
|
||||
result.append(col.as_sql(qn))
|
||||
result.append(col.as_sql(qn, self.connection))
|
||||
|
||||
if hasattr(col, 'alias'):
|
||||
aliases.add(col.alias)
|
||||
|
||||
Reference in New Issue
Block a user