Commit f371686f authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Delete orphan todos only if useful

I.e. do not delete orphan todos if the protocol names them by ID.
That happens if the todo is created using the web interface.

/close #105
parent b64bdcd4
...@@ -597,7 +597,7 @@ class Todo(DatabaseModel): ...@@ -597,7 +597,7 @@ class Todo(DatabaseModel):
def render_template(self): def render_template(self):
parts = ["todo", self.who, self.description, self.state.get_name()] parts = ["todo", self.who, self.description, self.state.get_name()]
if self.state.needs_date(): if self.state.needs_date():
parts.append(date_filter( parts.append(date_filter_short(
parts.append("id {}".format(self.get_id())) parts.append("id {}".format(self.get_id()))
return "[{}]".format(";".join(parts)) return "[{}]".format(";".join(parts))
Supports Markdown
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