From 8d183b875ecb5560a3e1f2c422306e84f761fd43 Mon Sep 17 00:00:00 2001 From: Kevin Meinhardt <kmeinhardt@mozilla.com> Date: Thu, 21 Nov 2024 12:11:42 +0100 Subject: [PATCH] Remove uneeded import_licenses command --- src/olympia/amo/management/commands/data_seed.py | 1 - .../management/commands/import_licenses.py | 15 --------------- 2 files changed, 16 deletions(-) delete mode 100644 src/olympia/applications/management/commands/import_licenses.py diff --git a/src/olympia/amo/management/commands/data_seed.py b/src/olympia/amo/management/commands/data_seed.py index e20343bfe31..33078c1f5e0 100644 --- a/src/olympia/amo/management/commands/data_seed.py +++ b/src/olympia/amo/management/commands/data_seed.py @@ -29,7 +29,6 @@ def handle(self, *args, **options): self.logger.info('Loading initial data...') call_command('loaddata', 'initial.json') call_command('import_prod_versions') - call_command('import_licenses') call_command( 'createsuperuser', '--no-input', diff --git a/src/olympia/applications/management/commands/import_licenses.py b/src/olympia/applications/management/commands/import_licenses.py deleted file mode 100644 index ece0890ff71..00000000000 --- a/src/olympia/applications/management/commands/import_licenses.py +++ /dev/null @@ -1,15 +0,0 @@ -from django.core.management.base import BaseCommand - -from olympia.constants.licenses import ALL_LICENSES -from olympia.versions.models import License - - -class Command(BaseCommand): - help = """Import a the licenses.""" - - def handle(self, *args, **options): - for license in ALL_LICENSES: - try: - License.objects.get_or_create(builtin=license.builtin) - except Exception: - continue