@receiver(thread_edited)
@receiver(thread_deleted)
@receiver(comment_edited)
@receiver(comment_deleted)
def post_edit_delete_handler(sender, **kwargs):
 post = kwargs['post']
 handle_activity(kwargs['user'], post, long(post.user_id))

@ receiver ( thread_edited ) @ receiver ( thread_deleted ) @ receiver ( comment_edited ) @ receiver ( comment_deleted ) def post_edit_delete_handler ( sender , ** kwargs ) : post = kwargs [ 'post' ] handle_activity ( kwargs [ 'user' ] , post , long ( post . user_id ) )
update the users last activity date upon editing or deleting a post .