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):
def render_template(self):
parts = ["todo", self.who, self.description, self.state.get_name()]
if self.state.needs_date():
parts.append(date_filter(self.date))
parts.append(date_filter_short(self.date))
parts.append("id {}".format(self.get_id()))
return "[{}]".format(";".join(parts))
......
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