Ticket #14476: 14476-annotate-aggregate-r17389.diff

File 14476-annotate-aggregate-r17389.diff, 570 bytes (added by Tai Lee, 12 years ago)
  • tests/regressiontests/aggregation_regress/tests.py

     
    865865            ['Peter Norvig'],
    866866            lambda b: b.name
    867867        )
     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        )
Back to Top