mirror of
https://github.com/django/django.git
synced 2025-02-08 00:16:31 +00:00
When __len__() is called (e.g. when casting to list or tuple), the QuerySet is evaluated and the result cache populated. iterator() shouldn't be called on the QuerySet after that, as it would reset the result cache and trigger a second query.