I found out that I needed to change the query set to a list, then I could append new data to the end and return this. The following is the ammeded inclusion tag.
@register.inclusion_tag('cashtransfer.html') def show_cash_transfer(username): balance=[] x=0 y=0 qs=CashTransfer.objects.filter(user=username) item=list(qs) # convert the queery into a list for cash in item: x=item[y].credit+x item[y].balance=x #as a list we are able to append the data y=y+1 return { 'transfers': item } --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---