Commit 4c76896e authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

[1.2.X] Fixed #15530 -- Corrected typo in template loader deprecation message....

[1.2.X] Fixed #15530 -- Corrected typo in template loader deprecation message. Thanks to msaelices for the report and patch.

Backport of r15714 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15716 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 76f5b4eb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -141,12 +141,12 @@ def find_template_source(name, dirs=None):
    # For backward compatibility
    import warnings
    warnings.warn(
        "`django.template.loaders.find_template_source` is deprecated; use `django.template.loaders.find_template` instead.",
        "`django.template.loaders.find_template_source` is deprecated; use `django.template.loader.find_template` instead.",
        PendingDeprecationWarning
    )
    template, origin = find_template(name, dirs)
    if hasattr(template, 'render'):
        raise Exception("Found a compiled template that is incompatible with the deprecated `django.template.loaders.find_template_source` function.")
        raise Exception("Found a compiled template that is incompatible with the deprecated `django.template.loader.find_template_source` function.")
    return template, origin

def get_template(template_name):