summaryrefslogtreecommitdiff
path: root/tests/template_tests/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/template_tests/tests.py')
-rw-r--r--tests/template_tests/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/template_tests/tests.py b/tests/template_tests/tests.py
index 9460cc3f1d..48ae165dcb 100644
--- a/tests/template_tests/tests.py
+++ b/tests/template_tests/tests.py
@@ -85,8 +85,8 @@ class TemplateTests(SimpleTestCase):
"""
#23060 -- Test non-ASCII model representation in debug output.
"""
- Group.objects.create(name="清風")
- c1 = Context({"objs": Group.objects.all()})
+ group = Group(name="清風")
+ c1 = Context({"objs": [group]})
t1 = Template('{% debug %}')
self.assertIn("清風", t1.render(c1))