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 = []
|
views = []
|
||||||
for p in urlpatterns:
|
for p in urlpatterns:
|
||||||
if hasattr(p, 'get_callback'):
|
if hasattr(p, '_get_callback'):
|
||||||
try:
|
try:
|
||||||
views.append((p.get_callback(), base + p.regex.pattern))
|
views.append((p._get_callback(), base + p.regex.pattern))
|
||||||
except ViewDoesNotExist:
|
except ViewDoesNotExist:
|
||||||
continue
|
continue
|
||||||
elif hasattr(p, '_get_url_patterns'):
|
elif hasattr(p, '_get_url_patterns'):
|
||||||
|
|
Loading…
Reference in New Issue