Hi all,
I notice a piece of code inside ModelChoiceIterator that seems to keep going a bit back and forth, currently it looks like this:
# Can't use iterator() when queryset uses prefetch_related()
if not queryset._prefetch_related_lookups:
queryset = queryset.iterator()
But before it looked like this:
# Can't use iterator() when queryset uses prefetch_related()
if not queryset._prefetch_related_lookups and queryset._result_cache is None:
queryset = queryset.iterator()
Anyway, my issue is that it forces you