Fixed problems with the I18nTextField widget

This commit is contained in:
Raphael Michel
2015-12-12 23:49:35 +01:00
parent bebc15241a
commit 84655449d9

View File

@@ -83,6 +83,8 @@ class I18nWidget(forms.MultiWidget):
def decompress(self, value):
data = []
if not isinstance(value, LazyI18nString):
value = LazyI18nString(value)
for lng in self.langcodes:
data.append(
value.data[lng]