Commit 3de61d20 by Jacob Magnusson

Don't convert dictionary into a string representation

parent b9bff2a9
...@@ -90,6 +90,8 @@ class Field(object): ...@@ -90,6 +90,8 @@ class Field(object):
return value return value
elif hasattr(value, '__iter__') and not isinstance(value, (dict, basestring)): elif hasattr(value, '__iter__') and not isinstance(value, (dict, basestring)):
return [self.to_native(item) for item in value] 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) return smart_unicode(value)
def attributes(self): def attributes(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment