From 3458947aad70b63dfb3a0c9873085c9e6b813409 Mon Sep 17 00:00:00 2001 From: Marsel Date: Fri, 29 Aug 2014 10:49:23 +0400 Subject: [PATCH] unicode title --- djangojsonschema/jsonschema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: