Ticket #14476: 14476-annotate-aggregate-r17389.diff
File 14476-annotate-aggregate-r17389.diff, 570 bytes (added by , 13 years ago) |
---|
-
tests/regressiontests/aggregation_regress/tests.py
865 865 ['Peter Norvig'], 866 866 lambda b: b.name 867 867 ) 868 # Make sure that `aggregate()` also works. 869 self.assertEqual( 870 Author.objects.annotate(Count('book')).aggregate(Max('book__count')), 871 {'book__count__max': 2} 872 )