When I see the docs (https://docs.djangoproject.com/en/1.8/ref/models/querysets/#extra), I notice .extra will be deprecated and removed. Is there a plan for the replacement? As I see it, limiting ourselves to using Manager.raw() is not a good idea, since you cannot work anymore on a RawQueryset object (as you can work on any Queryset object you called .extra). So my question is: Is there a good replacement for .extra being planned?
Triggers.objects.all().extra({"day": "date_trunc('day', date)"}).values_list('name', 'severity', 'day').annotate(total=Count('severity'))