Skip to content
Browse files

Fixed #8889: make admindocs function view work with class-based views.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 16c9df0 commit 226ab592e2ef50c96cb1005eb7338552feef4735 @jacobian jacobian committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/admindocs/
2 django/contrib/admindocs/
@@ -129,7 +129,7 @@ def view_index(request):
site_obj = GenericSite()
for (func, regex) in view_functions:
- 'name': func.__name__,
+ 'name': hasattr(func, '__class__') and func.__class__.__name__ or func.__name__,
'module': func.__module__,
'site_id': settings_mod.SITE_ID,
'site': site_obj,

0 comments on commit 226ab59

Please sign in to comment.
Something went wrong with that request. Please try again.