mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -129,7 +129,7 @@ def view_index(request): | ||||
|             site_obj = GenericSite() | ||||
|         for (func, regex) in view_functions: | ||||
|             views.append({ | ||||
|                 '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, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user