From d8d56ff020cf6d627daf0d579c664d105df59b7d Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 17 Nov 2025 17:09:17 +0100 Subject: [PATCH] Disable switching currency when orders exist (fixes #2047) --- src/pretix/control/forms/event.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pretix/control/forms/event.py b/src/pretix/control/forms/event.py index 5df8f714fe..529fdaac69 100644 --- a/src/pretix/control/forms/event.py +++ b/src/pretix/control/forms/event.py @@ -374,6 +374,13 @@ class EventUpdateForm(I18nModelForm): super().__init__(*args, **kwargs) if not self.change_slug: self.fields['slug'].widget.attrs['readonly'] = 'readonly' + + if self.instance.orders.exists(): + self.fields['currency'].disabled = True + self.fields['currency'].help_text = _( + 'The currency cannot be changed because orders already exist.' + ) + self.fields['location'].widget.attrs['rows'] = '3' self.fields['location'].widget.attrs['placeholder'] = _( 'Sample Conference Center\nHeidelberg, Germany'