From 17bd34930a35f4097082ed3e2453d42d7d4f21a4 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Thu, 3 Mar 2011 00:25:17 +0000 Subject: [PATCH] Fixed #15530 -- Corrected typo in template loader deprecation message. Thanks to msaelices for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15714 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/template/loader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/template/loader.py b/django/template/loader.py index e58dc3231d..2fc1a7a3aa 100644 --- a/django/template/loader.py +++ b/django/template/loader.py @@ -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.loader.find_template_source` is deprecated; use `django.template.loader.find_template` instead.", DeprecationWarning ) 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):