Fix for dynamodb2 attribute response. Closes #374.

This commit is contained in:
Steve Pulec 2015-07-14 21:57:14 -04:00
parent 0d07320e03
commit e5caaf5913

View File

@ -81,7 +81,9 @@ class Item(object):
def to_json(self):
attributes = {}
for attribute_key, attribute in self.attrs.items():
attributes[attribute_key] = attribute.value
attributes[attribute_key] = {
attribute.type : attribute.value
}
return {
"Attributes": attributes