Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
load_template_source is no longer in Django as of 1.4
  • Loading branch information
bmihelac committed May 18, 2012
1 parent b13a31f commit 9c4db30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_utils/templatetags/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9c4db30

Please sign in to comment.