I just recently needed to do date based aggregation at work, and I
discovered that this functionality already exists in Django 1.8 after the
query expression refactoring, but is undocumented. Your example can be
written like this:
from django.db.models import Sum
from
The PR is up at https://github.com/django/django/pull/3825
- Michael
On Sunday, December 21, 2014 9:58:19 PM UTC+1, Michał Modzelewski wrote:
> I think I can. I'll try to catch you on IRC to discuss API.
>
> - Michael
>
>
> On Wednesday, December 17, 2014 2:48:31 AM UTC+1,
eature
>> freeze at alpha. The details are outlined here:
>>
>> https://code.djangoproject.com/wiki/Version1.8Roadmap
>>
>> On Tuesday, December 16, 2014 8:01:23 PM UTC-5, Josh Smeaton wrote:
>>>
>>> On Tuesday, 16 December 2014 18:23:29 UTC+11, Mi
able to have
> a SimpleCase and a Case?
>
> Josh
>
> On Wednesday, 19 November 2014 08:34:10 UTC+11, Michał Modzelewski wrote:
>>
>> I've put my code up on github at
>> https://github.com/michalmo/django-case-expressions. I've decided not to
>> create a