From 1e5e9742f8e090bcd7a60276c79aaf5c60db1d0e Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Fri, 16 Jan 2015 08:06:23 +0100 Subject: [PATCH] Task: Change export_data() to expect non-serialized values in self._data dict --- tasklib/task.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasklib/task.py b/tasklib/task.py index ec3de29..fc56a89 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -467,7 +467,9 @@ class Task(TaskResource): """ # We need to remove spaces for TW-1504, use custom separators - return json.dumps(self._data, separators=(',',':')) + data = dict((key, self._serialize(key, value)) + for key, value in six.iteritems(self._data)) + return json.dumps(data, separators=(',',':')) class TaskFilter(SerializingObject): """ -- 2.39.5