Changes between Initial Version and Version 1 of Ticket #27849, comment 1


Ignore:
Timestamp:
Feb 16, 2017, 12:49:49 PM (8 years ago)
Author:
Tom Forbes

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27849, comment 1

    initial v1  
    88
    99It would be quite nice to be able to pass a whole, full-fat `QuerySet` into the aggregate, with the predicate that it is has been `values_list`'ed and is a relation of the model being queried (i.e `SomeModel.objects.annotate(foo=ArrayAgg('some_relation__id', where=SomeRelation.objects.filter(parent=F('id')).values_list('xyz'))` or somesuch. Is this even possible, or would it be chewing off too much?
     10
     11Oh, and is this a feature that Django even wants?
Back to Top