forked from CGM_Public/pretix_original
Fixed a bug in I18nFormField (thanks @JRodDynamite)
This commit is contained in:
@@ -215,6 +215,9 @@ class I18nFormField(forms.MultiValueField):
|
|||||||
return LazyI18nString(data)
|
return LazyI18nString(data)
|
||||||
|
|
||||||
def clean(self, value):
|
def clean(self, value):
|
||||||
|
if isinstance(value, LazyI18nString):
|
||||||
|
# This happens e.g. if the field is disabled
|
||||||
|
return value
|
||||||
found = False
|
found = False
|
||||||
clean_data = []
|
clean_data = []
|
||||||
errors = []
|
errors = []
|
||||||
|
|||||||
Reference in New Issue
Block a user