Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django annotate vs aggregate

videos = Video.objects.values('id', 'name','video').annotate(Count('user_likes',distinct=True)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #annotate #aggregate
ADD COMMENT
Topic
Name
9+8 =