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 13:32:35 -0400 |
| commit | 3ab3be4b5d9dca8d278f261c4c7d124275bbf3bd (patch) | |
| tree | 431892e573972b9f6126de5c126f015e472a6e58 /tests/template_tests/tests.py | |
| parent | e846ea0649b29df4dc1ecbac3b79769099e61a9c (diff) | |
[1.8.x] Refs #24652 -- Converted a template test to avoid executing queries.
Backport of 8bf1449edb4139451643e3823b194b4c02ca7633 from master
Diffstat (limited to 'tests/template_tests/tests.py')
| -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 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)) |
