Opened 6 years ago

Last modified 6 years ago

#24039 new Cleanup/optimization

Filtering using __in on a count annotated queryset returns empty results

Reported by: Dustin Farris Owned by: nobody
Component: Database layer (models, ORM) Version: 1.7
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Dustin Farris)

See failing tests and description in GitHub PR

Also see example output from pdb in my own project here:

Change History (2)

comment:1 Changed 6 years ago by Dustin Farris

Description: modified (diff)

comment:2 Changed 6 years ago by Tim Graham

Component: UncategorizedDatabase layer (models, ORM)
Triage Stage: UnreviewedAccepted
Type: BugCleanup/optimization

I am not sure this can be fixed (or if it should be) as there are subtle differences depending on where you use filter() on a QuerySet but at least the documentation could probably be improved.

Note: See TracTickets for help on using tickets.
Back to Top