Ticket #11234: 20090529-block-scope.diff
File 20090529-block-scope.diff, 544 bytes (added by , 15 years ago) |
---|
-
django/template/loader_tags.py
21 21 # Save context in case of block.super(). 22 22 self.context = context 23 23 context['block'] = self 24 scoped_block = context.dicts[0] 24 25 result = self.nodelist.render(context) 25 context. pop()26 context.dicts.remove(scoped_block) 26 27 return result 27 28 28 29 def super(self):