From d4f26b8d061f162dddd1cdcae28b6276770d1fb3 Mon Sep 17 00:00:00 2001 From: CocoByte Date: Wed, 24 Jul 2024 14:18:12 -0600 Subject: [PATCH] linted and corrected command --- .github/workflows/rebuild-db.yaml | 2 +- src/registrar/management/commands/drop_tables.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/rebuild-db.yaml b/.github/workflows/rebuild-db.yaml index fe47b43a8..3232bbe96 100644 --- a/.github/workflows/rebuild-db.yaml +++ b/.github/workflows/rebuild-db.yaml @@ -46,7 +46,7 @@ jobs: cf_password: ${{ secrets[env.CF_PASSWORD] }} cf_org: cisa-dotgov cf_space: ${{ github.event.inputs.environment }} - cf_command: "run-task getgov-${{ github.event.inputs.environment }} --command 'python manage.py drop_tables --no-input' --name flush" + cf_command: "run-task getgov-${{ github.event.inputs.environment }} --command 'python manage.py drop_tables' --name flush" - name: Run Django migrations for ${{ github.event.inputs.environment }} uses: cloud-gov/cg-cli-tools@main diff --git a/src/registrar/management/commands/drop_tables.py b/src/registrar/management/commands/drop_tables.py index 1a5a40ee0..e4d18f576 100644 --- a/src/registrar/management/commands/drop_tables.py +++ b/src/registrar/management/commands/drop_tables.py @@ -1,10 +1,6 @@ import logging from django.conf import settings from django.core.management import BaseCommand -from django.apps import apps -from django.db import connection, transaction - -from registrar.management.commands.utility.terminal_helper import TerminalHelper logger = logging.getLogger(__name__)