Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #1348 -- {% ifchanged %} tag no longer renders content twice. T…

…hanks, j.rademaker

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2326 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e9c3efe7f389884c343f56ddd2cd17cba039333b 1 parent 97eb38b
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 5 deletions.
  1. +1 −0  AUTHORS
  2. +0 −5 django/core/template/defaulttags.py
View
1  AUTHORS
@@ -87,6 +87,7 @@ answer newbie questions, and generally made Django that much better:
Luke Plant <http://lukeplant.me.uk/>
plisk
Daniel Poelzleithner <http://poelzi.org/>
+ J. Rademaker
Brian Ray <http://brianray.chipy.org/>
Oliver Rutherfurd <http://rutherfurd.net/>
David Schein
View
5 django/core/template/defaulttags.py
@@ -121,12 +121,7 @@ def __init__(self, nodelist):
def render(self, context):
content = self.nodelist.render(context)
if content != self._last_seen:
- firstloop = (self._last_seen == None)
self._last_seen = content
- context.push()
- context['ifchanged'] = {'firstloop': firstloop}
- content = self.nodelist.render(context)
- context.pop()
return content
else:
return ''
Please sign in to comment.
Something went wrong with that request. Please try again.