Add iteration to queryset