0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Corrected slightly odd wording added in r16420.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16424 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jannis Leidel 2011-06-17 07:39:03 +00:00
parent b870bf6b9a
commit fffe983da1

View File

@ -99,11 +99,11 @@ def get_callable(lookup_view, can_fail=False):
"Could not import %s. View does not exist in module %s."
% (lookup_view, mod_name))
except ImportError:
ownermod, submod = get_mod_func(mod_name)
parentmod, submod = get_mod_func(mod_name)
if (not can_fail and submod != '' and
not module_has_submodule(import_module(ownermod), submod)):
not module_has_submodule(import_module(parentmod), submod)):
raise ViewDoesNotExist(
"Could not import %s. Owning module %s does not exist."
"Could not import %s. Parent module %s does not exist."
% (lookup_view, mod_name))
if not can_fail:
raise