Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10337 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 226ab592e2ef50c96cb1005eb7338552feef4735 1 parent 16c9df0
Jacob Kaplan-Moss authored April 01, 2009

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/contrib/admindocs/views.py
2  django/contrib/admindocs/views.py
@@ -129,7 +129,7 @@ def view_index(request):
129 129
             site_obj = GenericSite()
130 130
         for (func, regex) in view_functions:
131 131
             views.append({
132  
-                'name': func.__name__,
  132
+                'name': hasattr(func, '__class__') and func.__class__.__name__ or func.__name__,
133 133
                 'module': func.__module__,
134 134
                 'site_id': settings_mod.SITE_ID,
135 135
                 'site': site_obj,

0 notes on commit 226ab59

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