diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-02-27 21:09:27 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-02-27 21:09:27 +0100 |
| commit | b2c697b02911e6d02455e27afd33747f793103b6 (patch) | |
| tree | f676f0624e2829782b8474fbb13d0bc220d0da3d | |
| parent | 1b100d7beed757246df1da8417590a6f2aabc2bc (diff) | |
Fixed a PendingDeprecationWarning in template_tests.
| -rw-r--r-- | tests/template_tests/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/template_tests/tests.py b/tests/template_tests/tests.py index 66f11b1215..2787d69d34 100644 --- a/tests/template_tests/tests.py +++ b/tests/template_tests/tests.py @@ -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') |
