mirror of
https://github.com/django/django.git
synced 2025-03-06 15:32:33 +00:00
Simplified BaseContext.__iter__().
This commit is contained in:
parent
e26b780a24
commit
529c3f264d
@ -43,7 +43,7 @@ class BaseContext:
|
|||||||
return repr(self.dicts)
|
return repr(self.dicts)
|
||||||
|
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
yield from reversed(self.dicts)
|
return reversed(self.dicts)
|
||||||
|
|
||||||
def push(self, *args, **kwargs):
|
def push(self, *args, **kwargs):
|
||||||
dicts = []
|
dicts = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user