#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 bwesen):

 Aaargh, cmon, 11 years? To add a perfectly sane default of 0 for Sum? I'm
 amazed this hasn't been fixed for so long :) What was wrong with
 supporting default=0 at least? (yes I had the same perfectly normal
 reaction of getting annoyed by seeing NULL in my API output instead of 0
 for a Sum of Payments for a User).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/10929#comment:23>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.a9b1ea6d7c021d988d2203a3180b8d5d%40djangoproject.com.

Reply via email to