Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #2529 -- Fixed TypeError in admin/doc/views. Thanks for the rep…

…ort and patch, dummy@habmalnefrage.de

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3690 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d39b5cae6864bafc9a0a07d8b239af1946d93ea1 1 parent fc2d5f4
@adrianholovaty adrianholovaty authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/admin/views/doc.py
View
4 django/contrib/admin/views/doc.py
@@ -328,9 +328,9 @@ def extract_views_from_urlpatterns(urlpatterns, base=''):
"""
views = []
for p in urlpatterns:
- if hasattr(p, 'get_callback'):
+ if hasattr(p, '_get_callback'):
try:
- views.append((p.get_callback(), base + p.regex.pattern))
+ views.append((p._get_callback(), base + p.regex.pattern))
except ViewDoesNotExist:
continue
elif hasattr(p, '_get_url_patterns'):
Please sign in to comment.
Something went wrong with that request. Please try again.