django1/django/db
Matthew Schinckel 2864bb3ba6 [1.11.x] Fixed #27862 -- Fixed incorrectly quoted table aliases in Subquery SQL.
Add aliases from resolved querysets to the parent query's external
aliases to prevent those aliases from being quoted.

Thanks to Vasily Stepanov for the report and Tim Graham for the review.

Backport of f48bc7c3db from master
2017-03-01 08:21:12 -05:00
..
backends [1.11.x] Refs #27843 -- Fixed 'invalid escape sequence' warning in truncate_name(). 2017-02-27 09:31:06 -05:00
migrations [1.11.x] Fixed typo in django/db/migrations/operations/special.py. 2017-01-31 08:05:15 -05:00
models [1.11.x] Fixed #27862 -- Fixed incorrectly quoted table aliases in Subquery SQL. 2017-03-01 08:21:12 -05:00
__init__.py Fixed E305 flake8 warnings. 2016-11-14 12:30:46 -05:00
transaction.py Fixed #24921 -- set_autocommit(False) + ORM queries. 2015-09-21 22:21:53 +02:00
utils.py Fixed #25761 -- Added __cause__.__traceback__ to reraised exceptions. 2015-12-03 16:31:50 -05:00