Commit a605136b authored by David Douard's avatar David Douard
Browse files

[entities] display 'subtask' instead of an empty string in CeleryTask.dc_long_title

when no task name has been set yet.
parent e977a3bc65b3
......@@ -110,7 +110,7 @@ class CeleryTask(AnyEntity):
def dc_long_title(self):
adapted = self.cw_adapt_to('ICeleryTask')
state, finished = adapted.state, adapted.finished
title = self.task_name
title = self.task_name or self._cw._('subtask')
if finished:
title = '%s (%s)' % (title, self._cw._(state))
return title
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 to comment