I have confusion in result of these queries:
>>> [f.count for f in Favourite.objects.annotate(count = Count('object_id'))]
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
and second one is
>>> [f['count'] for f in Favourite.objects.values('object_id').annotate(count=Count('object_id'))]
[1, 5, 2, 1, 4, 2, 2, 3]
but according to django docs first query should work fine, and Favourite object have count of object_id.
Can anyone explain why the second query is working, but not the first?
Thanks!