Changes between Initial Version and Version 1 of Ticket #15624, comment 9


Ignore:
Timestamp:
Feb 19, 2013, 4:47:26 PM (12 years ago)
Author:
fhahn

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15624, comment 9

    initial v1  
    11I think the problem with {{{ Book.objects.annotate(c=Count('authors')).values('c').aggregate(Max('c')) }}} was that the call to {{{ .values('c') }}} set the {{{ aggregates_select_mask }}} to {{{ set(['c']) }}} and then {{{ c__max }}} does not show up in {{{ aggregate_select }}}.
    22
     3My patch adds the alias of the aggregate to {{{ aggregate_select_mask }}}, if {{{ aggregate_select_mask }}} is not None.
     4
    35I've updated the patch and created a pull request: https://github.com/django/django/pull/738
Back to Top