Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[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
  • Loading branch information...
commit 4c76896eada07f25d143e0d78989240f5ad8e020 1 parent 76f5b4e
Russell Keith-Magee authored March 03, 2011

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/template/loader.py
4  django/template/loader.py
@@ -141,12 +141,12 @@ def find_template_source(name, dirs=None):
141 141
     # For backward compatibility
142 142
     import warnings
143 143
     warnings.warn(
144  
-        "`django.template.loaders.find_template_source` is deprecated; use `django.template.loaders.find_template` instead.",
  144
+        "`django.template.loaders.find_template_source` is deprecated; use `django.template.loader.find_template` instead.",
145 145
         PendingDeprecationWarning
146 146
     )
147 147
     template, origin = find_template(name, dirs)
148 148
     if hasattr(template, 'render'):
149  
-        raise Exception("Found a compiled template that is incompatible with the deprecated `django.template.loaders.find_template_source` function.")
  149
+        raise Exception("Found a compiled template that is incompatible with the deprecated `django.template.loader.find_template_source` function.")
150 150
     return template, origin
151 151
 
152 152
 def get_template(template_name):

0 notes on commit 4c76896

Please sign in to comment.
Something went wrong with that request. Please try again.