summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorFrançois Freitag <mail@franek.fr>2018-02-23 21:12:09 -0800
committerTim Graham <timograham@gmail.com>2018-03-01 14:17:56 -0500
commita2e97abd8149e78071806a52282a24c27fe8236b (patch)
tree591c60e6446313d2b02a8abbbbd57ed132e014c0 /docs
parent40f0aa988571431508a508f4fac5ba94c6443f5c (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 'docs')
0 files changed, 0 insertions, 0 deletions