From 9c4db3015f47b43d7fa2b605ec1523d61e2eba17 Mon Sep 17 00:00:00 2001 From: Bojan Mihelac Date: Fri, 18 May 2012 15:31:50 +0200 Subject: [PATCH] FIX: #29 load_template_source is no longer in Django as of 1.4 --- test_utils/templatetags/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_utils/templatetags/__init__.py b/test_utils/templatetags/__init__.py index c72a94c..a93bcf3 100644 --- a/test_utils/templatetags/__init__.py +++ b/test_utils/templatetags/__init__.py @@ -1,7 +1,7 @@ import re import os from django.conf import settings -from django.template.loaders.filesystem import load_template_source +from django.template.loaders.filesystem import Loader from django import template from test_utils.testmaker import Testmaker @@ -33,7 +33,7 @@ def __init__(self, template, context=None): self.tests = [] #Accept both template names and template strings try: - self.template_string, self.filepath = load_template_source(template.name) + self.template_string, self.filepath = Loader.load_template_source(template.name) except: self.template_string = template self.filepath = None