Browse files

Do [10337] correctly; thanks, Alex.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10338 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 226ab59 commit f03f9568aa9eb79baac6f782f9ebc69e4a6001d4 @jacobian jacobian committed Apr 1, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/admindocs/views.py
View
2 django/contrib/admindocs/views.py
@@ -129,7 +129,7 @@ def view_index(request):
site_obj = GenericSite()
for (func, regex) in view_functions:
views.append({
- 'name': hasattr(func, '__class__') and func.__class__.__name__ or func.__name__,
+ 'name': getattr(func, '__name__', func.__class__.__name__),
'module': func.__module__,
'site_id': settings_mod.SITE_ID,
'site': site_obj,

0 comments on commit f03f956

Please sign in to comment.