Commits

Roman Tolkachyov committed 82c7100

struct_to_obj тоже исправлено

Comments (0)

Files changed (1)

easycouch/couch.py

 		if isinstance(value, dict) and value.has_key('doctype'):
 			doctype = value['doctype']
 			value = self.couch.get_mapper(doctype).to_obj(value)
+		elif isinstance(value, dict):
+			for key in value:
+				value[key] = self.struct_to_obj(value[key])
 		elif isinstance(value, list):
 			i = 0
 			for item in value: