This should work (using the same MySQL specific function you used):
Review.objects.filter(venue__pk=2)
.extra({'date_created' : "date(datetime_created)"})
.values('date_created')
.annotate(created_count=Count('id'))
More Related Contents:
- How do I filter query objects by date range in Django?
- Django Aggregation: Summation of Multiplication of two fields
- How do I do a not equal in Django queryset filtering?
- Django values_list vs values
- “_set” in a queryset object in Django
- QuerySet, Object has no attribute id – Django
- Get the latest record with filter in Django
- Django filter JSONField list of dicts
- How to delete a record in Django models?
- Can a dictionary be passed to django models on create?
- How to query as GROUP BY in django?
- Convert Django Model object to dict with all of the fields intact
- Django auto_now and auto_now_add
- Programmatically saving image to Django ImageField
- Django FileField with upload_to determined at runtime
- how to import csv data into django models
- In Django, how does one filter a QuerySet with dynamic field lookups?
- How to get two random records with Django
- What is the most efficient way to store a list in the Django models?
- Is this the way to validate Django model fields?
- Django: Display Choice Value
- Django – How to rename a model field using South?
- Create Django model or update if exists
- Django Admin nested inline
- How to have a Python script for a Django app that accesses models without using the manage.py shell?
- How to display uploaded images in “Change List” page in Django Admin?
- Using .aggregate() on a value introduced using .extra(select={…}) in a Django Query?
- How to do many-to-many Django query to find book with 2 given authors?
- How can I set two primary key fields for my models in Django?
- Django foreign key relation in template