Ticket #11234: 20090529-block-scope.diff

File 20090529-block-scope.diff, 544 bytes (added by brutimus, 6 years ago)

First patch

  • django/template/loader_tags.py

     
    2121        # Save context in case of block.super().
    2222        self.context = context
    2323        context['block'] = self
     24        scoped_block = context.dicts[0]
    2425        result = self.nodelist.render(context)
    25         context.pop()
     26        context.dicts.remove(scoped_block)
    2627        return result
    2728
    2829    def super(self):
Back to Top