forked from CGM_Public/pretix_original
Add tests for the i18n string handling
This commit is contained in:
@@ -40,7 +40,7 @@ class LazyI18nString:
|
||||
elif settings.LANGUAGE_CODE in self.data and self.data[settings.LANGUAGE_CODE]:
|
||||
return self.data[settings.LANGUAGE_CODE]
|
||||
elif len(self.data):
|
||||
return self.data.items()[0][1]
|
||||
return list(self.data.items())[0][1]
|
||||
else:
|
||||
return ""
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user