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

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/GsH5_PynvlvfvUOGXdykXjO56LubTE6KuNzKjLZpnn2SX_AqPJ5Y43DbelaKtV8AiTEJBl5OETUjhJ6etgiBQGP9-koYrM2LOlVhG4Om6Yc%3D%40protonmail.com.
  • ... '1337 Shadow Hacker' via Django developers (Contributions to Django itself)
    • ... '1337 Shadow Hacker' via Django developers (Contributions to Django itself)
      • ... '1337 Shadow Hacker' via Django developers (Contributions to Django itself)
        • ... charettes
          • ... '1337 Shadow Hacker' via Django developers (Contributions to Django itself)
            • ... charettes
              • ... '1337 Shadow Hacker' via Django developers (Contributions to Django itself)

Reply via email to