mirror of
https://github.com/Hopiu/django.git
synced 2026-04-13 03:21:05 +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`. |
||
|---|---|---|
| .. | ||
| 4x8.png | ||
| 8x4.png | ||
| __init__.py | ||
| models.py | ||
| test_durationfield.py | ||
| test_field_flags.py | ||
| test_imagefield.py | ||
| test_uuid.py | ||
| tests.py | ||