X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/07620d4b006b17a88e694f50224c4c1b25750348..d409220d5abb52c0bb0022bf8b24728636a96a5b:/tasklib/task.py diff --git a/tasklib/task.py b/tasklib/task.py index c9fafa6..d9b2678 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -92,7 +92,7 @@ class TaskAnnotation(TaskResource): class Task(TaskResource): - read_only_fields = ['id', 'entry', 'urgency', 'uuid'] + read_only_fields = ['id', 'entry', 'urgency', 'uuid', 'modified'] class DoesNotExist(Exception): pass @@ -130,6 +130,7 @@ class Task(TaskResource): # We keep data for backwards compatibility # TODO: Should we keep this using unserialized access to _data dict? self._data.update(data) + self._original_data.update(data) def __unicode__(self): return self['description']