1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00
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
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
test2.png
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
test.png
tests.py Fixed #29158 -- Fixed len(choices) crash if ModelChoiceField's queryset is a manager. 2018-03-01 14:12:14 -05:00