app/soc/views/models/base.py
changeset 1809 66aec0241d61
parent 1806 d321d5123928
child 1843 af89d570bf6f
equal deleted inserted replaced
1808:f6ec0f486247 1809:66aec0241d61
   544 
   544 
   545     if export is not None and export < len(contents):
   545     if export is not None and export < len(contents):
   546       content = contents[export]
   546       content = contents[export]
   547       key_order = content.get('key_order')
   547       key_order = content.get('key_order')
   548 
   548 
   549       data = [i.toDict() for i in content['data']]
   549       data = [i.toDict(key_order) for i in content['data']]
   550 
   550 
   551       if not key_order:
   551       if not key_order:
   552         data = [i.values() for i in data]
   552         data = [i.values() for i in data]
   553 
   553 
   554       filename = "export_%d" % export
   554       filename = "export_%d" % export