@aggregate(_("<STR_LIT>"))<EOL>def aggregate_sum(items, col):
return sum(getattr(item, col) for item in items)<EOL>
Function to use on Group by Charts.
accepts a list and returns the sum of the list's items