diff options
| author | Simon Charette <charette.s@gmail.com> | 2015-04-13 12:18:57 -0400 |
|---|---|---|
| committer | Simon Charette <charette.s@gmail.com> | 2015-05-20 12:50:40 -0400 |
| commit | 8bf1449edb4139451643e3823b194b4c02ca7633 (patch) | |
| tree | 577f886d58a56738e92774f48af3ab4484c463b7 | |
| parent | 3db21c351b9b1108954c388799d35c8dad7dfc19 (diff) | |
Refs #24652 -- Converted a template test to avoid executing queries.
| -rw-r--r-- | tests/template_tests/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/template_tests/tests.py b/tests/template_tests/tests.py index 0a71489f3e..436502305e 100644 --- a/tests/template_tests/tests.py +++ b/tests/template_tests/tests.py @@ -115,8 +115,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 = Engine().from_string('{% debug %}') self.assertIn("清風", t1.render(c1)) |
