Ticket #4539: patch.2.diff
File patch.2.diff, 798 bytes (added by , 17 years ago) |
---|
-
django/templatetags/i18n.py
60 60 return ''.join(result) 61 61 62 62 def render(self, context): 63 context.push()63 tmp_context = {} 64 64 for var,val in self.extra_context.items(): 65 context[var] = val.resolve(context) 65 tmp_context[var] = val.resolve(context) 66 # update works as a push, so corresponding context.pop() is 67 # at the end of function 68 context.update(tmp_context) 66 69 singular = self.render_token_list(self.singular) 67 70 if self.plural and self.countervar and self.counter: 68 71 count = self.counter.resolve(context)