diff options
| author | Tim Graham <timograham@gmail.com> | 2013-08-29 12:09:35 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-08-29 12:11:03 -0400 |
| commit | c7d0ff0cad24dbf444f2e4b534377c3352c7aa98 (patch) | |
| tree | 7bd912d817fbdde2126e7cd01141be1663312de8 /django/db/models/sql/query.py | |
| parent | f19a3669b87641d7882491c3590d3c1c79756197 (diff) | |
Fixed #20989 -- Removed explicit list comprehension inside dict() and tuple()
Thanks jeroen.pulles at redslider.net for the suggestion and
helper script.
Diffstat (limited to 'django/db/models/sql/query.py')
| -rw-r--r-- | django/db/models/sql/query.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py index 1d19c5b9a8..ae67b6f20c 100644 --- a/django/db/models/sql/query.py +++ b/django/db/models/sql/query.py @@ -762,7 +762,7 @@ class Query(object): # 2. Rename the alias in the internal table/alias datastructures. for ident, aliases in self.join_map.items(): del self.join_map[ident] - aliases = tuple([change_map.get(a, a) for a in aliases]) + aliases = tuple(change_map.get(a, a) for a in aliases) ident = (change_map.get(ident[0], ident[0]),) + ident[1:] self.join_map[ident] = aliases for old_alias, new_alias in six.iteritems(change_map): |
