summaryrefslogtreecommitdiff
path: root/django/forms/fields.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/forms/fields.py')
-rw-r--r--django/forms/fields.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/django/forms/fields.py b/django/forms/fields.py
index 0f120378a1..e42c1597c7 100644
--- a/django/forms/fields.py
+++ b/django/forms/fields.py
@@ -742,8 +742,7 @@ class CallableChoiceIterator:
self.choices_func = choices_func
def __iter__(self):
- for e in self.choices_func():
- yield e
+ yield from self.choices_func()
class ChoiceField(Field):