Could you rename itr to _iter, so that it is consistent? Also, there are other uses of itr in view.py, it would be nice if they are named _iter too.