mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-28 17:09:59 +03:00
force_text -> str
This commit is contained in:
parent
04831809d3
commit
9b0250daec
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user