Example #1
0
def postsave_comment(sender, instance, created, **kwargs):
    from townsquare.tasks import send_comment_email
    if created:
        send_comment_email.delay(instance.pk)
Example #2
0
def postsave_comment(sender, instance, created, **kwargs):
    from townsquare.tasks import send_comment_email, refresh_activities
    refresh_activities.delay([instance.activity.pk])
    send_comment_email.delay(instance.pk)