Source

django / 2to3notes

1
2
3
4
Book.objects.filter(pk=1).values().annotate(mean_age=Avg('authors__age'))
transformed to
list(Book.objects.filter(pk=1).values()).annotate(mean_age=Avg('authors__age'))
-> list object has no annotate