#32200: Aggregating when grouping on an ExpressionWrapper omits the expression 
from
the group by
--------------------------------+--------------------------------------
     Reporter:  Gordon Wrigley  |                    Owner:  nobody
         Type:  Uncategorized   |                   Status:  new
    Component:  Uncategorized   |                  Version:  3.1
     Severity:  Normal          |               Resolution:
     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 Gordon Wrigley):

 To test this, given the implied model above, you can create 3 Fred
 objects, 2 with one value for bob_id and the third with a different value.
 When you do the select on that you should see `[{"bob_id__is_null": False,
 "id_count": 3}]`
 But instead you will get `[{"bob_id__is_null": False, "id_count": 1},
 {"bob_id__is_null": False, "id_count": 2}]`

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32200#comment:4>
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/065.15330c6b991576cdd3f7169ca08728cd%40djangoproject.com.

Reply via email to