Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Set only dummy payments as plugins in populatedb

IKarbowiak68f4711cc63c
diff --git a/saleor/core/management/commands/populatedb.py b/saleor/core/management/commands/populatedb.py
index 73bd838333..ebaa73496f 100644
--- a/saleor/core/management/commands/populatedb.py
+++ b/saleor/core/management/commands/populatedb.py
@@ -1,6 +1,7 @@
from io import StringIO
from django.apps import apps
+from django.conf import settings
from django.core.management import call_command
from django.core.management.base import BaseCommand
from django.db import connection
@@ -85,6 +86,11 @@ class Command(BaseCommand):
cursor.execute(commands.getvalue())
def handle(self, *args, **options):
+ settings.PLUGINS = [
+ "saleor.payment.gateways.dummy.plugin.DummyGatewayPlugin",
+ "saleor.payment.gateways.dummy_credit_card.plugin."
+ "DummyCreditCardGatewayPlugin",
+ ]
self.make_database_faster()
create_images = not options["withoutimages"]
for msg in create_shipping_zones():