summaryrefslogtreecommitdiff
path: root/tests/test_utils/views.py
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2014-10-31 11:38:53 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2014-10-31 11:38:53 +0100
commitc0c1bb9e64d7e1cea50dc4818ffcf229b568578b (patch)
tree8eb0c20045034a8cc99a3ab90d199261e6082401 /tests/test_utils/views.py
parentf2ddc439b1938acb6cae693bda9d8cf83a4583be (diff)
Avoided using private API get_template_from_string.
Diffstat (limited to 'tests/test_utils/views.py')
-rw-r--r--tests/test_utils/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_utils/views.py b/tests/test_utils/views.py
index 48fddba283..6c30d07199 100644
--- a/tests/test_utils/views.py
+++ b/tests/test_utils/views.py
@@ -1,6 +1,6 @@
from django.http import HttpResponse
from django.shortcuts import get_object_or_404
-from django.template import loader, Context
+from django.template import Context, Template
from .models import Person
@@ -11,7 +11,7 @@ def get_person(request, pk):
def no_template_used(request):
- template = loader.get_template_from_string("This is a string-based template")
+ template = Template("This is a string-based template")
return HttpResponse(template.render(Context({})))