mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-10-31 07:57:55 +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) | ||||
| 
 | ||||
|         if not isinstance(description, unicode): | ||||
|             description = description.decode('UTF-8') | ||||
| 
 | ||||
|         if html: | ||||
|             return self.markup_description(description) | ||||
|         return description | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user