Do [10337] correctly; thanks, Alex.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10338 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2009-04-01 18:44:25 +00:00
parent 226ab592e2
commit f03f9568aa
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ def view_index(request):
site_obj = GenericSite() site_obj = GenericSite()
for (func, regex) in view_functions: for (func, regex) in view_functions:
views.append({ views.append({
'name': hasattr(func, '__class__') and func.__class__.__name__ or func.__name__, 'name': getattr(func, '__name__', func.__class__.__name__),
'module': func.__module__, 'module': func.__module__,
'site_id': settings_mod.SITE_ID, 'site_id': settings_mod.SITE_ID,
'site': site_obj, 'site': site_obj,