diff --git a/src/pretix/base/plugins.py b/src/pretix/base/plugins.py index 2beb5ec10c..4f32b66828 100644 --- a/src/pretix/base/plugins.py +++ b/src/pretix/base/plugins.py @@ -29,6 +29,7 @@ from django.apps import AppConfig, apps from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.utils.translation import gettext_lazy as _ +from django_scopes import scope from packaging.requirements import Requirement PLUGIN_LEVEL_EVENT = 'event' @@ -71,7 +72,8 @@ def get_all_plugins(*, event=None, organizer=None) -> List[type]: continue elif organizer and hasattr(app, 'is_available'): if not event_fallback_used: - event_fallback = organizer.events.first() + with scope(organizer=organizer): + event_fallback = organizer.events.first() event_fallback_used = True if not event_fallback or not app.is_available(event_fallback): continue