def handle_emails_post_case_save(sender, instance, created=False, **_kwargs): """ Send email updates after a TestCase has been updated! """ if not created and instance.emailing.notify_on_case_update: from tcms.testcases.helpers import email email.email_case_update(instance)
def on_case_save(sender, instance, created=False, **kwargs): # case update and email if not created: if instance.emailing.notify_on_case_update: email.email_case_update(instance)