tn
Size: a a a
tn
К
RS
Д
Д
KS
B
BR
BR
НК
Д
r'^delete/(?P<pk>[0-9]+)/$'
Д
ДА
r'^delete/(?P<pk>[0-9]+)/$'
ДА
Д
S
f
temp = Rating.objects.values("user_id").annotate(vote_count=Count("user_id")).values("vote_count")
<QuerySet [{'vote_count': 1}, {'vote_count': 10}, {'vote_count': 5}, {'vote_count': 6}, {'vote_count': 3}, {'vote_count': 3}, {'vote_count': 10}, {'vote_count': 14}, {'vote_count': 2}, {'vote_count': 1}, {'vote_count': 10}, {'vote_count': 1}, {'vote_count': 4}, {'vote_count': 1}, {'vote_count': 1}....
temp.annotate(total_count=Count("vote_count"))
django.core.exceptions.FieldError: Cannot compute Count("vote_count"): 'vote_count' is an aggregate
Ꮆ
Ꮆ