@aggregate(_(u'Sum of'))
def aggregate_sum(items, col):
 return sum((getattr(item, col) for item in items))

@ aggregate ( _ ( u'Sum of' ) ) def aggregate_sum ( items , col ) : return sum ( ( getattr ( item , col ) for item in items ) )
function to use on group by charts .