mirror of
https://github.com/django/django.git
synced 2025-02-13 02:46:41 +00:00
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`.