#10929: Support a default value for Sum (and possibly other aggregation
functions)
-------------------------------------+-------------------------------------
Reporter: nolan | Owner: (none)
Type: New feature | Status: new
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution:
Keywords: aggregate annotate | Triage Stage: Accepted
default |
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Aymeric Augustin):
I'm also facing this issue. The workaround with Coalesce works, but...
```
from django.db.models import Sum
from django.db.models.functions import Coalesce
```
really?
--
Ticket URL: <https://code.djangoproject.com/ticket/10929#comment:19>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/063.33891e40c18ebde465fb7286361494fd%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.