#34024: 'WhereNode' object has no attribute 'is_summary' when counting a 
queryset
with annotation from a subquery
-------------------------------------+-------------------------------------
     Reporter:  Valentin Rigal       |                    Owner:  David
                                     |  Sanders
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  4.1
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by GitHub <noreply@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"1674c70525bc370132a1db27617e468081920d11" 1674c705]:
 {{{
 #!CommitTicketReference repository=""
 revision="1674c70525bc370132a1db27617e468081920d11"
 Fixed #34024 -- Fixed crash when aggregating querysets with Q objects
 annotations.

 This reverts b64db05b9cedd96905d637a2d824cbbf428e40e7.

 It was reasonable to assume it was unnecessary code as there were
 no failing tests upon its removal. This commit adds the necessary
 regression tests for the failing condition identified in #34024
 alongside the original tests added in the PR for which
 WhereNode.is_summary was introduced.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34024#comment:6>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701836ab4af9b-a239eeda-f059-49c2-97e0-b5f010add854-000000%40eu-central-1.amazonses.com.

Reply via email to