1
0
mirror of https://github.com/django/django.git synced 2025-10-29 00:26:07 +00:00

[1.8.x] Fixed ImportError message in utils.module_loading.import_string()

Backport of c2b4967e76 from master
This commit is contained in:
Tomasz Kontusz
2015-06-03 17:05:03 +02:00
committed by Tim Graham
parent 66496c8403
commit b62dc60c98
2 changed files with 4 additions and 2 deletions

View File

@@ -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])