generate_queryset_batches finally tested and appears to work