Skip to content

Commit

Permalink
set field as is
Browse files Browse the repository at this point in the history
  • Loading branch information
allburov committed Oct 11, 2017
1 parent e7a2833 commit 465b83b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tfs/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ def __init__(self, data=None, tfs=None):
self.id = self._data['id']

def __setitem__(self, key, value):
result_key = key if key in self._fields else self._system_prefix + key
field_path = "/fields/{}".format(result_key)
field_path = "/fields/{}".format(key)
update_data = [dict(op="add", path=field_path, value=value)]
raw = self.tfs.update_workitem(self.id, update_data)
self.__init__(raw, self.tfs)
Expand Down

0 comments on commit 465b83b

Please sign in to comment.