mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 01:26:53 +03:00
Fix name fallback for BrowsableAPIRenderer
This commit is contained in:
parent
44b59969ce
commit
3ad5ebaea6
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user