Updated admin doc view to reflect changes from [411]

git-svn-id: http://code.djangoproject.com/svn/django/trunk@412 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-08-05 21:24:24 +00:00
parent a55598cbdd
commit b6a1105768
1 changed files with 3 additions and 3 deletions

View File

@ -238,7 +238,7 @@ def template_detail(request, template):
'templates' : templates,
})
return HttpResponse(t.render(c))
####################
# Helper functions #
####################
@ -325,8 +325,8 @@ def extract_views_from_urlpatterns(urlpatterns, base=''):
views.append((p.get_callback(), base + p.regex.pattern))
except ViewDoesNotExist:
continue
elif hasattr(p, 'get_url_patterns'):
views.extend(extract_views_from_urlpatterns(p.get_url_patterns(), base + p.regex.pattern))
elif hasattr(p, '_get_url_patterns'):
views.extend(extract_views_from_urlpatterns(p.url_patterns, base + p.regex.pattern))
else:
raise TypeError, "%s does not appear to be a urlpattern object" % p
return views