From 9b0250daec63fd09eb1824501e68d7032f7989fa Mon Sep 17 00:00:00 2001 From: chris Date: Thu, 25 Jul 2019 08:40:30 +0200 Subject: [PATCH] force_text -> str --- rest_framework/schemas/openapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/schemas/openapi.py b/rest_framework/schemas/openapi.py index bc5b4b603..4050bc260 100644 --- a/rest_framework/schemas/openapi.py +++ b/rest_framework/schemas/openapi.py @@ -377,7 +377,7 @@ class AutoSchema(ViewInspector): if field.default and field.default != empty: # why don't they use None?! schema['default'] = field.default if field.help_text: - schema['description'] = force_text(field.help_text) + schema['description'] = str(field.help_text) self._map_field_validators(field.validators, schema) properties[field.field_name] = schema