Changeset 7261
- Timestamp:
- 03/17/08 09:55:30 (4 months ago)
- Files:
-
- django/trunk/django/templatetags/i18n.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/templatetags/i18n.py
r6689 r7261 67 67 68 68 def render(self, context): 69 context.push()69 tmp_context = {} 70 70 for var, val in self.extra_context.items(): 71 context[var] = val.render(context) 71 tmp_context[var] = val.render(context) 72 # Update() works like a push(), so corresponding context.pop() is at 73 # the end of function 74 context.update(tmp_context) 72 75 singular, vars = self.render_token_list(self.singular) 73 76 if self.plural and self.countervar and self.counter:
