Don't convert dictionary into a string representation

This commit is contained in:
Jacob Magnusson 2012-11-02 20:55:58 +01:00
parent b9bff2a984
commit 3de61d200c

View File

@ -90,6 +90,8 @@ class Field(object):
return value
elif hasattr(value, '__iter__') and not isinstance(value, (dict, basestring)):
return [self.to_native(item) for item in value]
elif isinstance(value, dict):
return dict((k, self.to_native(v)) for k, v in value.items())
return smart_unicode(value)
def attributes(self):