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

queryset-refactor: Tweaked quote_name_if_not_alias() slightly.

git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6960 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2007-12-19 13:06:16 +00:00
parent 470ddafe97
commit 4dc766c9e1

View File

@ -130,7 +130,8 @@ class Query(object):
"""
if name in self.quote_cache:
return self.quote_cache[name]
if name in self.alias_map and name not in self.table_map:
if ((name in self.alias_map and name not in self.table_map) or
name in self.extra_select):
self.quote_cache[name] = name
return name
r = self.connection.ops.quote_name(name)