#34975: aggregate() crashes when referencing existing aggregations or window
expressions through conditional expressions
-------------------------------------+-------------------------------------
     Reporter:  Sergey Nesterenko    |                    Owner:  Simon
                                     |  Charette
         Type:  Bug                  |                   Status:  assigned
    Component:  Database layer       |                  Version:  4.2
  (models, ORM)                      |
     Severity:  Release blocker      |               Resolution:
     Keywords:  QuerySet, Window,    |             Triage Stage:  Accepted
  Aggregate, F                       |
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Sergey Nesterenko):

 Replying to [comment:7 Simon Charette]:
 > `filter=Q(new_ordering=F('ordering'))` instead of
 `filter=Q(ordering=F('new_ordering'))`.

 Yes, it solves my problem. Thankx!

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34975#comment:11>
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/0107018be13110fa-2304d8fa-9bea-49b0-adeb-9ba14125983e-000000%40eu-central-1.amazonses.com.

Reply via email to