django/django — pull request #3655 by jarshwah (2014-12-01 06:29:09+00:00)
Title: Fixed #23941 -- Aggregating over decimal field regression

This patch fixes the regression but probably isn't ready for commit just yet.

What this patch does is ignores the "max_digits" and "decimal_places" arguments of a DecimalField for all annotations. Setting your own arbitrary digits/decimals makes no sense with regards to aggregation, but it may make sense for other annotations.