Fixed a PendingDeprecationWarning in template_tests.

This commit is contained in:
Aymeric Augustin 2013-02-27 21:09:27 +01:00
parent 1b100d7bee
commit b2c697b029
1 changed files with 1 additions and 1 deletions

View File

@ -444,7 +444,7 @@ class Templates(TestCase):
def test_ifchanged_render_once(self):
""" Test for ticket #19890. The content of ifchanged template tag was
rendered twice."""
template = Template('{% ifchanged %}{% cycle "1st time" "2nd time" %}{% endifchanged %}')
template = Template('{% load cycle from future %}{% ifchanged %}{% cycle "1st time" "2nd time" %}{% endifchanged %}')
output = template.render(Context({}))
self.assertEqual(output, '1st time')