summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/template/context.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/context.py b/django/template/context.py
index 8218e86491..8f349a3a96 100644
--- a/django/template/context.py
+++ b/django/template/context.py
@@ -43,7 +43,7 @@ class BaseContext:
return repr(self.dicts)
def __iter__(self):
- yield from reversed(self.dicts)
+ return reversed(self.dicts)
def push(self, *args, **kwargs):
dicts = []