use django's iterator methor for querysets