Skip to content

Commit

Permalink
Add comment_deleted attr to timeline entries
Browse files Browse the repository at this point in the history
  • Loading branch information
bameda committed Jun 12, 2015
1 parent 11b6929 commit 2d5a387
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions taiga/timeline/signals.py
Expand Up @@ -99,6 +99,10 @@ def on_new_history_entry(sender, instance, created, **kwargs):
"comment_html": instance.comment_html,
}

# Detect deleted comment
if instance.delete_comment_date:
extra_data["comment_deleted"] = True

_push_to_timelines(project, user, obj, event_type, extra_data=extra_data)


Expand Down

0 comments on commit 2d5a387

Please sign in to comment.