qs = Item.objects.filter(...).values_list('title', 'amount', 'price') for title, amount, price in qs: print title, amount total += amount * price
Post a Comment
No comments:
Post a Comment