From 2fd81a2d204a5e2589ec1aa404dc5f7ca2943174 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 17 Jun 2019 10:46:10 +0200 Subject: [PATCH] Disable scopes for a management command --- .../stripe/management/commands/stripe_connect_fill_countries.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pretix/plugins/stripe/management/commands/stripe_connect_fill_countries.py b/src/pretix/plugins/stripe/management/commands/stripe_connect_fill_countries.py index 295520479d..c60b55411e 100644 --- a/src/pretix/plugins/stripe/management/commands/stripe_connect_fill_countries.py +++ b/src/pretix/plugins/stripe/management/commands/stripe_connect_fill_countries.py @@ -1,5 +1,6 @@ import stripe from django.core.management.base import BaseCommand +from django_scopes import scopes_disabled from pretix.base.models import Event from pretix.base.settings import GlobalSettingsObject @@ -8,6 +9,7 @@ from pretix.base.settings import GlobalSettingsObject class Command(BaseCommand): help = "Detect country for Stripe Connect accounts connected with pretix 2.0 (required for payment request buttons)" + @scopes_disabled() def handle(self, *args, **options): cache = {} gs = GlobalSettingsObject()