Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.0.X] Fixed #8889: make admindocs function view work with class-bas…

…ed views. Backport of r10337-r10338 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10339 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d0dce0257b79cbea80098b4c043a9a5ec36d8b89 1 parent e047110
Jacob Kaplan-Moss jacobian authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/admindocs/views.py
2  django/contrib/admindocs/views.py
View
@@ -128,7 +128,7 @@ def view_index(request):
site_obj = GenericSite()
for (func, regex) in view_functions:
views.append({
- 'name': func.__name__,
+ 'name': getattr(func, '__name__', func.__class__.__name__),
'module': func.__module__,
'site_id': settings_mod.SITE_ID,
'site': site_obj,
Please sign in to comment.
Something went wrong with that request. Please try again.