Skip to content

Commit

Permalink
Merge pull request #42 from anderoonies/extract-view-namespace-and-name
Browse files Browse the repository at this point in the history
Unpack namespace and name
  • Loading branch information
ericholscher committed Jul 22, 2016
2 parents 6c01bee + b7e6ba4 commit 136a0b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_utils/management/commands/crawlurls.py
Expand Up @@ -88,7 +88,7 @@ def handle(self, *args, **options):
continue continue


view_functions = extract_views_from_urlpatterns(urlconf.urlpatterns) view_functions = extract_views_from_urlpatterns(urlconf.urlpatterns)
for (func, regex) in view_functions: for (func, regex, namespace, name) in view_functions:
#Get function name and add it to the hash of URLConf urls #Get function name and add it to the hash of URLConf urls
func_name = hasattr(func, '__name__') and func.__name__ or repr(func) func_name = hasattr(func, '__name__') and func.__name__ or repr(func)
conf_urls[regex] = ['func.__module__', func_name] conf_urls[regex] = ['func.__module__', func_name]
Expand Down

0 comments on commit 136a0b8

Please sign in to comment.