mirror of
https://github.com/ansible/awx.git
synced 2026-05-15 13:27:40 -02:30
Added JobTemplate ownership change test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user