django/tests/model_forms
François Freitag a2e97abd81 Fixed #29159 -- Made ModelChoiceIterator reuse QuerySet result cache.
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.
2018-03-01 14:17:56 -05:00
..
__init__.py Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
models.py Eliminated the need to modify a model forms test when new test files are added. 2018-02-28 10:26:26 -05:00
test.png Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
test2.png Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
test_modelchoicefield.py Fixed #29159 -- Made ModelChoiceIterator reuse QuerySet result cache. 2018-03-01 14:17:56 -05:00
test_uuid.py Refs #23919 -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
tests.py Fixed #29158 -- Fixed len(choices) crash if ModelChoiceField's queryset is a manager. 2018-03-01 14:12:14 -05:00