mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Fixed a bug in I18nFormField (thanks @JRodDynamite)
This commit is contained in:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user