Commit a6806f03 by Jacob Magnusson

Apply to_native on dictionary keys as well

parent 3de61d20
......@@ -91,7 +91,7 @@ class Field(object):
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 dict(map(self.to_native, (k, v)) for k, v in value.items())
return smart_unicode(value)
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