mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Fixed problems with the I18nTextField widget
This commit is contained in:
@@ -83,6 +83,8 @@ class I18nWidget(forms.MultiWidget):
|
|||||||
|
|
||||||
def decompress(self, value):
|
def decompress(self, value):
|
||||||
data = []
|
data = []
|
||||||
|
if not isinstance(value, LazyI18nString):
|
||||||
|
value = LazyI18nString(value)
|
||||||
for lng in self.langcodes:
|
for lng in self.langcodes:
|
||||||
data.append(
|
data.append(
|
||||||
value.data[lng]
|
value.data[lng]
|
||||||
|
|||||||
Reference in New Issue
Block a user