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:
parent
a55598cbdd
commit
b6a1105768
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue