Added JobTemplate ownership change test

This commit is contained in:
Wayne Witzel III
2018-04-05 09:46:38 -04:00
parent 524343870b
commit 3411389d00
2 changed files with 30 additions and 0 deletions

View File

@@ -235,6 +235,7 @@ def cleanup_detached_labels_on_deleted_parent(sender, instance, **kwargs):
if l.is_candidate_for_detach():
l.delete()
def set_original_organization(sender, instance, **kwargs):
'''set_original_organization is used to set the original, or
pre-save organization, so we can later determine if the organization
@@ -242,6 +243,7 @@ def set_original_organization(sender, instance, **kwargs):
'''
instance.__original_org = instance.organization
def save_related_job_templates(sender, instance, **kwargs):
'''save_related_job_templates loops through all of the
job templates that use an Inventory or Project that have had their