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

[3.0.x] Fixed #30771 -- Fixed exact lookup against queries with selected columns.

Use pre-existing select fields (and thereby GROUP BY fields) from
subquery if they were specified, instead of always defaulting to pk.

Thanks Aur Saraf for the report and Simon Charette for guidance.

Backport of 0719edcd5f from master
This commit is contained in:
James Timmins
2019-09-19 19:20:40 -07:00
committed by Mariusz Felisiak
parent def1857d9b
commit 3697ddbf75
3 changed files with 17 additions and 3 deletions

View File

@@ -384,6 +384,7 @@ answer newbie questions, and generally made Django that much better:
James Bennett <james@b-list.org>
James Murty
James Tauber <jtauber@jtauber.com>
James Timmins <jameshtimmins@gmail.com>
James Wheare <django@sparemint.com>
Jannis Leidel <jannis@leidel.info>
Janos Guljas