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 | ||
test.png | ||
test2.png | ||
test_modelchoicefield.py | ||
test_uuid.py | ||
tests.py |