Ticket #1348: defaulttags.py.diff
File defaulttags.py.diff, 626 bytes (added by , 19 years ago) |
---|
-
defaulttags.py
121 121 def render(self, context): 122 122 content = self.nodelist.render(context) 123 123 if content != self._last_seen: 124 firstloop = (self._last_seen == None)125 124 self._last_seen = content 126 context.push()127 context['ifchanged'] = {'firstloop': firstloop}128 content = self.nodelist.render(context)129 context.pop()130 125 return content 131 126 else: 132 127 return ''