diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2015-03-26 22:22:03 +0100 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2015-03-26 22:22:03 +0100 |
commit | 69befae5fde1897cf68c4d44a146db5ba642c814 (patch) | |
tree | 88d696ef1784cd73552a5ecd13bc3f4af5d2ac2a /Makefile | |
parent | 40d4a4b13d4ca959879d1798f24d510fd7abf4dc (diff) | |
download | factory-boy-69befae5fde1897cf68c4d44a146db5ba642c814.tar factory-boy-69befae5fde1897cf68c4d44a146db5ba642c814.tar.gz |
Allow lazy evaluation of FuzzyChoice's iterators (Closes #184).
This allows the following idiom:
``user = factory.fuzzy.FuzzyChoice(User.objects.all())``
Previously, the ``User.objects.all()`` queryset would have been
evaluated *at import time*; it is now evaluated with the first use of the
``FuzzyChoice``.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions