mirror of
https://github.com/django/django.git
synced 2025-12-08 02:36:40 +00:00
Fixed a missing variable initialisation deep in the Query bowels.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9081 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
fd366a8531
commit
922aba3def
2 changed files with 6 additions and 0 deletions
|
|
@ -808,6 +808,7 @@ class Query(object):
|
|||
self.where.relabel_aliases(change_map)
|
||||
for pos, col in enumerate(self.select):
|
||||
if isinstance(col, (list, tuple)):
|
||||
old_alias = col[0]
|
||||
self.select[pos] = (change_map.get(old_alias, old_alias), col[1])
|
||||
else:
|
||||
col.relabel_aliases(change_map)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue