Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django group by date from datetime field

 Transaction.objects.values('created_at__date').annotate(count=Count('id')).values('created_at__date', 'count').order_by('created_at__date')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #group #date #datetime #field
ADD COMMENT
Topic
Name
1+3 =