Use .iterator() when stepping through transaction list so that Django doesn't cache all transactions in memory (@justinvdm).