diff --git a/djangojsonschema/jsonschema.py b/djangojsonschema/jsonschema.py index eef1ded..b80df9b 100644 --- a/djangojsonschema/jsonschema.py +++ b/djangojsonschema/jsonschema.py @@ -30,7 +30,7 @@ def convert_formfield(self, name, field, json_schema): #TODO detect bound field widget = field.widget target_def = { - 'title': field.label or pretty_name(name), + 'title': unicode(field.label or pretty_name(name)), 'description': field.help_text, } if field.required: