def postsave_comment(sender, instance, created, **kwargs): from townsquare.tasks import send_comment_email if created: send_comment_email.delay(instance.pk)
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)