mirror of
https://github.com/django/django.git
synced 2025-01-26 18:19:18 +00:00
80e3444eca
If Field.choices is provided as an iterator, consume it in __init__ instead of using itertools.tee (which ends up holding everything in memory anyway). Fixes a bug where deconstruct() was consuming the iterator but bypassing the call to `tee`.