Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit b6a1105768772e4687b8cf6342b2393426ef10d6 1 parent a55598c
@adrianholovaty adrianholovaty authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 django/views/admin/doc.py
View
6 django/views/admin/doc.py
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.