Fixed #2529 -- Fixed TypeError in admin/doc/views. Thanks for the report and patch, dummy@habmalnefrage.de

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3690 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-08-31 21:32:50 +00:00
parent fc2d5f461f
commit d39b5cae68
1 changed files with 2 additions and 2 deletions

View File

@ -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'):