mirror of
https://github.com/django/django.git
synced 2024-12-24 10:05:46 +00: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:
parent
b870bf6b9a
commit
fffe983da1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user