Changes between Initial Version and Version 1 of Ticket #15624, comment 9
- Timestamp:
- Feb 19, 2013, 4:47:26 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #15624, comment 9
initial v1 1 1 I 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 }}}. 2 2 3 My patch adds the alias of the aggregate to {{{ aggregate_select_mask }}}, if {{{ aggregate_select_mask }}} is not None. 4 3 5 I've updated the patch and created a pull request: https://github.com/django/django/pull/738