Add error reason to form validation for unicode->string list formfield

This commit is contained in:
Jeffrey Forman 2012-12-04 06:18:40 -05:00
parent 8937154b1d
commit bd65e1b239
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class CustomUnicodeListField(forms.CharField):
first_parse = eval(value)
string_list = [current_item for current_item in first_parse]
except:
raise ValidationError
raise ValidationError("Error in converting Unicode list to list of Strings: %r" % value)
return string_list