#23941: Aggregating over decimal field regression ----------------------------------------------+-------------------- Reporter: jarshwah | Owner: nobody Type: Uncategorized | Status: new Component: Database layer (models, ORM) | Version: master Severity: Release blocker | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 ----------------------------------------------+-------------------- See https://code.djangoproject.com/ticket/14030#comment:54
Aggregating over a decimal field respects the fields decimal_places and max_digits, which causes issues when the sum of the field expands. Eg: 999.99 + 999.99 = 1999.98 The result now has 6 digits rather than 5, and if the original field was defined with a max_digits=5, then the aggregation is going to fail. -- Ticket URL: <https://code.djangoproject.com/ticket/23941> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/051.99dab9f56f9eadf3d66e15064c6d456d%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.