mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 18:13:57 +03:00
support utf8 description
This commit is contained in:
parent
b1fca03089
commit
2deb31d096
|
@ -156,6 +156,9 @@ class View(ResourceMixin, RequestMixin, ResponseMixin, AuthMixin, DjangoView):
|
||||||
|
|
||||||
description = _remove_leading_indent(description)
|
description = _remove_leading_indent(description)
|
||||||
|
|
||||||
|
if not isinstance(description, unicode):
|
||||||
|
description = description.decode('UTF-8')
|
||||||
|
|
||||||
if html:
|
if html:
|
||||||
return self.markup_description(description)
|
return self.markup_description(description)
|
||||||
return description
|
return description
|
||||||
|
|
Loading…
Reference in New Issue
Block a user