From 81e4b0ec55e9e28261b52213d1c17d00f200c599 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Fri, 11 Sep 2026 18:36:04 +0200 Subject: [PATCH] Update src/pretix/base/forms/questions.py Co-authored-by: pajowu --- src/pretix/base/forms/questions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pretix/base/forms/questions.py b/src/pretix/base/forms/questions.py index 0227d1247d..bf5c758f88 100644 --- a/src/pretix/base/forms/questions.py +++ b/src/pretix/base/forms/questions.py @@ -350,6 +350,7 @@ class WrappedPhonePrefixSelect(Select): return super().render(name, value or self.initial, *args, **kwargs) def get_context(self, name, value, attrs): + # self.choices is lazy evaluated, needs to be realized to be modifiable choices = list(self.choices) if value and choices[1][0] != value: matching_choices = len([1 for p, c in choices if p == value])