Commit 205ea343 by Őry Máté

common: show proper warnings for result compat iface

parent d0dc1ed8
......@@ -177,7 +177,8 @@ class ActivityModel(TimeStampedModel):
def result(self, value):
if isinstance(value, basestring):
warn("Using string as result value is deprecated. Use "
"HumanReadableObject instead.", DeprecationWarning)
"HumanReadableObject instead.",
DeprecationWarning, stacklevel=2)
value = create_readable(user_text_template="",
admin_text_template=value)
......
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