mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 11:04:02 +03:00
Fix name fallback for BrowsableAPIRenderer
This commit is contained in:
parent
44b59969ce
commit
3ad5ebaea6
|
@ -406,7 +406,7 @@ class BrowsableAPIRenderer(BaseRenderer):
|
||||||
try:
|
try:
|
||||||
return view.get_name()
|
return view.get_name()
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
return force_unicode(view.__doc__)
|
return force_unicode(view.__class__.__name__)
|
||||||
|
|
||||||
def get_description(self, view):
|
def get_description(self, view):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user