Ticket #3749: FilterNode.patch
File FilterNode.patch, 600 bytes (added by , 18 years ago) |
---|
-
django/template/defaulttags.py
41 41 def render(self, context): 42 42 output = self.nodelist.render(context) 43 43 # apply filters 44 return self.filter_expr.resolve(Context({'var': output})) 44 context.update({'var': output}) 45 filtered = self.filter_expr.resolve(context) 46 context.pop() 47 return filtered 45 48 46 49 class FirstOfNode(Node): 47 50 def __init__(self, vars):