Ticket #8889: admindocs_view_index.diff
File admindocs_view_index.diff, 827 bytes (added by , 16 years ago) |
---|
-
django/contrib/admindocs/views.py
127 127 else: 128 128 site_obj = GenericSite() 129 129 for (func, regex) in view_functions: 130 name = '' 131 # check for callable class 132 cls = getattr(func.__call__, 'im_class', None) 133 if cls: 134 name = cls.__name__ 135 else: 136 name = func.__name__ 130 137 views.append({ 131 'name': func.__name__,138 'name': name, 132 139 'module': func.__module__, 133 140 'site_id': settings_mod.SITE_ID, 134 141 'site': site_obj,