#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)                      |               Resolution:
     Severity:  Normal               |             Triage Stage:  Accepted
     Keywords:  aggregate annotate   |      Needs documentation:  1
  default                            |  Patch needs improvement:  0
    Has patch:  1                    |                    UI/UX:  0
  Needs tests:  0                    |
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by mrmachine):

 I'm not totally convinced (yet) that we should give up on this when
 `Coalesce()` becomes available. If we just instruct people to use
 `Coalesce(Sum(...), default)` all the time, we're basically just
 recreating the literal semantics of SQL itself rather than providing an
 easy to use abstraction of it. Sure, it would be useful and powerful to
 have `Coalesce()` as well, but we might not need to force people to use it
 all the time for the common case. At the very least, a decision on closing
 this ticket should probably wait until `Coalesce()` is actually
 implemented.

--
Ticket URL: <https://code.djangoproject.com/ticket/10929#comment:11>
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.fe42b09b1dee11cba16d1c26e2b62cd4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to