* has_patch: 0 => 1
* ui_ux: => 0
* needs_tests: 0 => 1
* easy: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/15624#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: marekw2143 =>
* status: assigned => new
--
Ticket URL: <https://code.djangoproject.com/ticket/15624#comment:7>
Comment (by stefano@…):
Hello! Any news on that? I see there's a patch, now oldish, but nothing
happened since and nobody from core has commented on it... is that patch a
viable solution?
--
Ticket URL: <https://code.djangoproject.com/ticket/15624#comment:8>
* cc: flo@… (added)
* owner: => fhahn
* status: new => assigned
* needs_tests: 1 => 0
Comment:
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 }}}.
I've updated the patch and created a pull request:
https://github.com/django/django/pull/738
--
Ticket URL: <https://code.djangoproject.com/ticket/15624#comment:9>
* cc: jmilner (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/15624#comment:11>
* stage: Accepted => Ready for checkin
Comment:
Patch applies cleanly and tests pass. Would like someone more familiar
with the code to +1 before committing.
--
Ticket URL: <https://code.djangoproject.com/ticket/15624#comment:12>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"e888a9b30dd9d62a930b9244d1b5531bb17544b4"]:
{{{
#!CommitTicketReference repository=""
revision="e888a9b30dd9d62a930b9244d1b5531bb17544b4"
Fixed #15624 -- Made sure aggregations are present in SELECT
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/15624#comment:13>