summaryrefslogtreecommitdiff
path: root/django/utils/module_loading.py
diff options
context:
space:
mode:
authorTomasz Kontusz <tomasz.kontusz@gmail.com>2015-06-03 17:05:03 +0200
committerTim Graham <timograham@gmail.com>2015-06-06 11:55:56 -0400
commitb62dc60c9817d726cf17a2ed32ef708911f1b9f5 (patch)
treea648b081f951a0804f33330d8d812f9260e1ead1 /django/utils/module_loading.py
parent66496c840375834b173c506c033d6f971ccaacea (diff)
[1.8.x] Fixed ImportError message in utils.module_loading.import_string()
Backport of c2b4967e76fd671e6199e4dd54d2a2c1f096b8eb from master
Diffstat (limited to 'django/utils/module_loading.py')
-rw-r--r--django/utils/module_loading.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/module_loading.py b/django/utils/module_loading.py
index b94119a3b4..eaa5f669d1 100644
--- a/django/utils/module_loading.py
+++ b/django/utils/module_loading.py
@@ -29,7 +29,7 @@ def import_string(dotted_path):
return getattr(module, class_name)
except AttributeError:
msg = 'Module "%s" does not define a "%s" attribute/class' % (
- dotted_path, class_name)
+ module_path, class_name)
six.reraise(ImportError, ImportError(msg), sys.exc_info()[2])