mirror of
https://github.com/django/django.git
synced 2024-11-18 07:26:04 +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`. |
||
---|---|---|
.. | ||
__init__.py | ||
4x8.png | ||
8x4.png | ||
models.py | ||
test_durationfield.py | ||
test_field_flags.py | ||
test_imagefield.py | ||
test_uuid.py | ||
tests.py |