diff options
| author | Tom Christie | 2013-06-26 22:41:52 +0100 |
|---|---|---|
| committer | Tom Christie | 2013-06-26 22:41:52 +0100 |
| commit | b564008a0199f0bf7b6087fa094876ec57c4f764 (patch) | |
| tree | 7912456fee96ff3708a9277d2943765448db78cb /rest_framework/utils/formatting.py | |
| parent | 494703fc8e916a9b7a318ec8bc7d774ef31de14e (diff) | |
| parent | 35e4d1cf9cdc71d1ac6501feb0337d27a1cf946e (diff) | |
| download | django-rest-framework-b564008a0199f0bf7b6087fa094876ec57c4f764.tar.bz2 | |
Merge branch 'master' of https://github.com/tomchristie/django-rest-framework
Diffstat (limited to 'rest_framework/utils/formatting.py')
| -rw-r--r-- | rest_framework/utils/formatting.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rest_framework/utils/formatting.py b/rest_framework/utils/formatting.py index ebadb3a6..4bec8387 100644 --- a/rest_framework/utils/formatting.py +++ b/rest_framework/utils/formatting.py @@ -5,7 +5,7 @@ from __future__ import unicode_literals from django.utils.html import escape from django.utils.safestring import mark_safe -from rest_framework.compat import apply_markdown +from rest_framework.compat import apply_markdown, smart_text import re @@ -63,7 +63,7 @@ def get_view_description(cls, html=False): Return a description for an `APIView` class or `@api_view` function. """ description = cls.__doc__ or '' - description = _remove_leading_indent(description) + description = _remove_leading_indent(smart_text(description)) if html: return markup_description(description) return description |
