From 81dd54504ea8d10c717c84989f051a974e405dcb Mon Sep 17 00:00:00 2001 From: Seth Foster Date: Wed, 16 Dec 2020 11:14:33 -0500 Subject: [PATCH] move custom deletion tool for cleanup jobs to utils --- awx/main/management/commands/cleanup_jobs.py | 2 +- awx/main/tests/functional/commands/test_cleanup_jobs.py | 2 +- awx/main/{management/commands => utils}/deletion.py | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename awx/main/{management/commands => utils}/deletion.py (100%) diff --git a/awx/main/management/commands/cleanup_jobs.py b/awx/main/management/commands/cleanup_jobs.py index dd6304e242..66953acde9 100644 --- a/awx/main/management/commands/cleanup_jobs.py +++ b/awx/main/management/commands/cleanup_jobs.py @@ -21,7 +21,7 @@ from awx.main.signals import ( disable_computed_fields ) -from awx.main.management.commands.deletion import AWXCollector, pre_delete +from awx.main.utils.deletion import AWXCollector, pre_delete class Command(BaseCommand): diff --git a/awx/main/tests/functional/commands/test_cleanup_jobs.py b/awx/main/tests/functional/commands/test_cleanup_jobs.py index ed50698338..98be403d1f 100644 --- a/awx/main/tests/functional/commands/test_cleanup_jobs.py +++ b/awx/main/tests/functional/commands/test_cleanup_jobs.py @@ -6,7 +6,7 @@ from collections import OrderedDict from django.db.models.deletion import Collector, SET_NULL, CASCADE from django.core.management import call_command -from awx.main.management.commands.deletion import AWXCollector +from awx.main.utils.deletion import AWXCollector from awx.main.models import ( JobTemplate, User, Job, JobEvent, Notification, WorkflowJobNode, JobHostSummary diff --git a/awx/main/management/commands/deletion.py b/awx/main/utils/deletion.py similarity index 100% rename from awx/main/management/commands/deletion.py rename to awx/main/utils/deletion.py