Fix AC-969, Convert variables element in changes dictionary from json representation

This commit is contained in:
Matthew Jones
2014-01-31 10:59:06 -05:00
parent 77e77d905a
commit a21332a2d4

View File

@@ -1037,6 +1037,8 @@ class ActivityStreamSerializer(BaseSerializer):
return {}
try:
d_changes = json.loads(obj.changes)
if 'variables' in d_changes:
d_changes['variables'] = json.loads(d_changes['variables'])
return d_changes
except Exception, e:
logger.warn("Error deserializing activity stream json changes")