#30569: Count and Sum annotation interfere with each other in a QuerySet
involving
multiple relations
-------------------------------------+-------------------------------------
Reporter: Antoine | Owner: nobody
Type: Bug | Status: new
Component: Database | Version: 2.2
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
While constructing a complex QuerySet, I ran into an issue where a Sum
annotation on a relation would yield a different result whether or not
another, seemingly unrelated Count annotation would be added. Everything
needed to reproduce the issue is detailed here, including a dump of the
database I used to illustrate the issue:
https://stackoverflow.com/questions/56567841/django-count-and-sum-
annotations-interfere-with-each-other
--
Ticket URL: <https://code.djangoproject.com/ticket/30569>
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/049.fc8ca7d843e550120904ecd903f15c3a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.