I am trying to sum in HTML,but template tag return 0 ,
View.py
def gen_Report(request): ### query returns below output list=[{\'total\': 1744, \'us
I suspect that your list is an iterator. So the first time it iterates over and the second time it iterate over nothing. So you should do something like this
for d in list_total: d.set('list_sum', list(d.get('list_sum')))
before calling your template