There was an error while loading. Please reload this page.
1 parent 1b100d7 commit b2c697bCopy full SHA for b2c697b
tests/template_tests/tests.py
@@ -444,7 +444,7 @@ def gen():
444
def test_ifchanged_render_once(self):
445
""" Test for ticket #19890. The content of ifchanged template tag was
446
rendered twice."""
447
- template = Template('{% ifchanged %}{% cycle "1st time" "2nd time" %}{% endifchanged %}')
+ template = Template('{% load cycle from future %}{% ifchanged %}{% cycle "1st time" "2nd time" %}{% endifchanged %}')
448
output = template.render(Context({}))
449
self.assertEqual(output, '1st time')
450
0 commit comments