1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

[1.6.x] Fixed #21760 -- prefetch_related used an inefficient query for reverse FK.

Regression introduced by commit 9777442. Refs #21410.

Conflicts:
	tests/prefetch_related/tests.py

Backport of d3b71b976d from master
This commit is contained in:
valtron
2014-04-11 19:27:34 -06:00
committed by Loic Bistuer
parent a357079892
commit 1252b77824
4 changed files with 25 additions and 1 deletions

View File

@@ -67,5 +67,9 @@ Other bugfixes and changes
* Fixed :djadmin:`changepassword` on Windows
(`#22364 <https://code.djangoproject.com/ticket/22364>`_).
* Fixed regression in ``prefetch_related`` that caused the related objects
query to include an unnecessary join
(`#21760 <https://code.djangoproject.com/ticket/21760>`_).
Additionally, Django's vendored version of six, :mod:`django.utils.six` has been
upgraded to the latest release (1.6.1).