Commit b37ca46b by Őry Máté

common: add HumanReadableObject.__unicode__

parent 7c658a86
...@@ -361,4 +361,8 @@ class HumanReadableObject(object): ...@@ -361,4 +361,8 @@ class HumanReadableObject(object):
"admin_text_template": self.admin_text_template, "admin_text_template": self.admin_text_template,
"params": self.params} "params": self.params}
def __unicode__(self):
return self.get_user_text()
create_readable = HumanReadableObject.create create_readable = HumanReadableObject.create
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