mirror of https://github.com/django/django.git
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:
parent
fc2d5f461f
commit
d39b5cae68
|
@ -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'):
|
||||
|
|
Loading…
Reference in New Issue