Commit dff642f3 by Dudás Ádám

common: fix setter names

parent 3e73e11c
......@@ -165,7 +165,7 @@ class ActivityModel(TimeStampedModel):
return HumanReadableObject.from_dict(self.readable_name_data)
@readable_name.setter
def set_readable_name(self, value):
def readable_name(self, value):
self.readable_name_data = None if value is None else value.to_dict()
@property
......@@ -173,7 +173,7 @@ class ActivityModel(TimeStampedModel):
return HumanReadableObject.from_dict(self.result_data)
@result.setter
def set_result(self, value):
def result(self, value):
if isinstance(value, basestring):
warn("Using string as result value is deprecated. Use "
"HumanReadableObject instead.", DeprecationWarning)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment