Hello Guys, I've tried the following with no success:
Match.objects.filter(sendDate__gte=dateToStats).values("sendDate__day").annotate(perDay=Count("id")).order_by()
Fails with:
Cannot resolve keyword 'sendDate__day' into field.
Where sendDate is a DateTime field, and dateToStats is just a certain date I'm filtering. I'm interested in having the number of matches per day (based on sendDate).
Thanks a lot guys!