Ejemplo n.º 1
0
def comment_post_delete(instance, **kwargs):
    comment_removed.send(sender=instance.__class__, comment=instance)
Ejemplo n.º 2
0
def comment_post_save(instance, **kwargs):
    if hasattr(instance, '__pub_info'):
        # if this is a newly removed comment, send the comment_removed signal
        if not instance.__pub_info['is_removed'] and instance.is_removed:
            comment_removed.send(sender=instance.__class__, comment=instance)