Fix for dynamodb2 attribute response. Closes #374.
This commit is contained in:
		
							parent
							
								
									0d07320e03
								
							
						
					
					
						commit
						e5caaf5913
					
				@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user