Skip to content

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

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

felixxm merged 1 commit into
django:mainfrom
DevilsAutumn:ticket_33975

Conversation

@DevilsAutumn

Copy link
Copy Markdown
Member

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

felixxm commented Sep 9, 2022

Copy link
Copy Markdown
Member

Thanks both 🌟

@felixxm
felixxm merged commit 32797e7 into django:main Sep 9, 2022
davidgegiya added a commit to davidgegiya/agent-orchestrator that referenced this pull request Nov 9, 2026
… QuerySet.alias() is used after annotate()

Pin 0c3981eb5094419fe200eb46c71b5376a2266166 and its regression selectors for reproducible runs.

Source: django/django#16032
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