From e202ff2b805c12f7b858aa2bdb90b43eff465e68 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 10 Jun 2022 23:13:26 +0200 Subject: [PATCH] remove import_fixtures command --- tasks.py | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) diff --git a/tasks.py b/tasks.py index 59c618fcd9..be4b642a9f 100644 --- a/tasks.py +++ b/tasks.py @@ -402,53 +402,6 @@ def delete_data(c, force=False): manage(c, 'flush') -@task(post=[rebuild_models, rebuild_thumbnails]) -def import_fixtures(c): - """Import fixture data into the database. - - This command imports all existing test fixture data into the database. - - Warning: - - Intended for testing / development only! - - Running this command may overwrite existing database data!! - - Don't say you were not warned... - """ - fixtures = [ - # Build model - 'build', - - # Common models - 'settings', - - # Company model - 'company', - 'price_breaks', - 'supplier_part', - - # Order model - 'order', - - # Part model - 'bom', - 'category', - 'params', - 'part', - 'test_templates', - - # Stock model - 'location', - 'stock_tests', - 'stock', - - # Users - 'users' - ] - - command = 'loaddata ' + ' '.join(fixtures) - - manage(c, command, pty=True) - - @task(help={'address': 'Server address:port (default=127.0.0.1:8000)'}) def server(c, address="127.0.0.1:8000"): """Launch a (deveopment) server using Django's in-built webserver.