From 07620d4b006b17a88e694f50224c4c1b25750348 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Fri, 2 Jan 2015 00:23:06 +0100 Subject: [PATCH] Task: Enumarate only writable fields as modified --- tasklib/task.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasklib/task.py b/tasklib/task.py index 64c13ac..c9fafa6 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -153,7 +153,8 @@ class Task(TaskResource): @property def _modified_fields(self): - for key in self._data.keys(): + writable_fields = set(self._data.keys()) - set(self.read_only_fields) + for key in writable_fields: if self._data.get(key) != self._original_data.get(key): yield key -- 2.39.5