diff options
| author | François Freitag <mail@franek.fr> | 2018-02-23 21:12:09 -0800 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-03-01 14:17:56 -0500 |
| commit | a2e97abd8149e78071806a52282a24c27fe8236b (patch) | |
| tree | 591c60e6446313d2b02a8abbbbd57ed132e014c0 /tests/auth_tests/test_models.py | |
| parent | 40f0aa988571431508a508f4fac5ba94c6443f5c (diff) | |
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.
Diffstat (limited to 'tests/auth_tests/test_models.py')
0 files changed, 0 insertions, 0 deletions
