Fixed a bug in I18nFormField (thanks @JRodDynamite)

This commit is contained in:
Raphael Michel
2016-08-14 10:44:55 +02:00
parent 95159d2af5
commit b53ef744ec

View File

@@ -215,6 +215,9 @@ class I18nFormField(forms.MultiValueField):
return LazyI18nString(data)
def clean(self, value):
if isinstance(value, LazyI18nString):
# This happens e.g. if the field is disabled
return value
found = False
clean_data = []
errors = []