Fix name fallback for BrowsableAPIRenderer

This commit is contained in:
Tom Christie 2013-02-22 13:38:20 +00:00
parent 44b59969ce
commit 3ad5ebaea6

View File

@ -406,7 +406,7 @@ class BrowsableAPIRenderer(BaseRenderer):
try:
return view.get_name()
except AttributeError:
return force_unicode(view.__doc__)
return force_unicode(view.__class__.__name__)
def get_description(self, view):
try: