mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
a2e97abd81
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. |
||
---|---|---|
.. | ||
__init__.py | ||
models.py | ||
test2.png | ||
test_modelchoicefield.py | ||
test_uuid.py | ||
test.png | ||
tests.py |