Skip to content
/ django Public

Fixed #33975 -- Fixed __in lookup when rhs is a queryset with annotate() and alias().#16032

Merged
felixxm merged 1 commit intodjango:mainfrom
DevilsAutumn:ticket_33975
Sep 9, 2022
Merged

Fixed #33975 -- Fixed __in lookup when rhs is a queryset with annotate() and alias().#16032
felixxm merged 1 commit intodjango:mainfrom
DevilsAutumn:ticket_33975

Conversation

@DevilsAutumn
Copy link
Contributor

Ticket #33975

Using .filter with lookup field__in=queryset where queryset contains .annotate and .alias does not fail now.

…e() and alias().

This fixes clearing selected fields.
@felixxm felixxm changed the title Fixed #33975 -- __in now clear selected fields on the RHS when QuerySet.alias() is used after annotate(). Fixed #33975 -- Fixed __in lookup when rhs is a queryset with annotate() and alias(). Sep 9, 2022
@felixxm
Copy link
Member

felixxm commented Sep 9, 2022

Thanks both 🌟

@felixxm felixxm merged commit 32797e7 into django:main Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants