def handle_comments_pre_delete(sender, **kwargs):
    """
        Delete comments attached to object which is about to be
        deleted b/c django-comments' object_pk is not a FK relationship
        and we can't rely on cascading delete!
    """
    from tcms.core.helpers.comments import get_comments
    if kwargs.get('raw', False):
        return
    instance = kwargs['instance']
    get_comments(instance).delete()
