Opened 11 years ago
Last modified 11 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 )
See failing tests and description in GitHub PR https://github.com/django/django/pull/3773
Also see example output from pdb in my own project here: http://dpaste.com/3JQYWTZ#line-31
Change History (2)
comment:1 by , 11 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 11 years ago
| Component: | Uncategorized → Database layer (models, ORM) |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
| Type: | Bug → Cleanup/optimization |
Note:
See TracTickets
for help on using tickets.
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.