mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +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`.
34 KiB
34 KiB