#30771: Filtering on query result overrides GROUP BY of internal query
-------------------------------------+-------------------------------------
     Reporter:  Aur Saraf            |                    Owner:  James
                                     |  Timmins
         Type:  Bug                  |                   Status:  assigned
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  annotate,            |             Triage Stage:  Accepted
  annotation, filter, groupby,       |
  aggregate, aggregation             |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Simon Charette):

 I think that we should only default to `pk` if no fields are selected. The
 ORM has preliminary support for multi-column lookups and other interface
 dealing with subqueries doesn't prevent passing queries with multiple
 fields so I'd stick to the current `__in` lookup behavior.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30771#comment:8>
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/068.0d9812d8d5ed83db9992a464f49cea4e%40djangoproject.com.

Reply via email to