#26178: Weird Queryset Result
-------------------------------------+-------------------------------------
Reporter: heseba | Owner: nobody
Type: Uncategorized | Status: closed
Component: Database layer | Version: 1.9
(models, ORM) |
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by srkunze):
> I believe this to be another instance of the "multiple multivalued joins
in the same query produces wrong results for aggregation" problem. I wish
there was an easy solution for this.
I remember we having this issue as well in 3 of our products using Django.
We solved it by using Python for loops and dicts created from values_list.
Not sure if swapping filter and annotate would have helped there.
What I can tell you and what I remember is that it's definitely not
intuitive. ;-)
--
Ticket URL: <https://code.djangoproject.com/ticket/26178#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.3f614a04a360d431129aa2769b9e2af6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.