None != 0 If no rows were encountered, then None should be returned, because there was no data to aggregate, thus how can it logically come back with 0?
I'm -1 on this On Wed, Nov 23, 2011 at 6:24 PM, M. Can Bayrak <miratcanbay...@gmail.com>wrote: > Agree, i think sum must return decimal. Same problem with me. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/tS-EZk6nTbEJ. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.