From 7c288a25798202898542faeb95db5639ef1d3950 Mon Sep 17 00:00:00 2001 From: Ernesto Rico Schmidt <ernesto@helsinki.at> Date: Thu, 14 Apr 2022 17:10:45 -0400 Subject: [PATCH] Remove remove_automation_id management command --- .../management/commands/remove_automation_id.py | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 program/management/commands/remove_automation_id.py diff --git a/program/management/commands/remove_automation_id.py b/program/management/commands/remove_automation_id.py deleted file mode 100644 index 519e7681..00000000 --- a/program/management/commands/remove_automation_id.py +++ /dev/null @@ -1,15 +0,0 @@ -from django.core.management.base import BaseCommand, CommandError -from program.models import Schedule - - -class Command(BaseCommand): - help = "removes the automation_id from the program slots" - args = "<automation_id>" - - def handle(self, *args, **options): - if len(args) == 1: - automation_id = args[0] - else: - raise CommandError("you must provide the automation_id") - - Schedule.objects.filter(automation_id=automation_id).update(automation_id=None) -- GitLab