#10929: Support a default value for Sum (and possibly other aggregation
functions)
-------------------------------------+-------------------------------------
Reporter: nolan | Owner:
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 jarshwah):
If you are running into this use case, you can use Coalesce(Sum('field'),
0) in Django 1.8. At least until a decision is made on this ticket. If you
want to bring this up on the ML for the other ORM people to have input,
that'd be a good next step.
--
Ticket URL: <https://code.djangoproject.com/ticket/10929#comment:16>
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.835ef81fe8d88f4295fd0f23e184dbab%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.