fix error reporting, where choices is list of flat values

This commit is contained in:
zmolodchenko 2013-03-09 21:08:10 +02:00
parent eeb672feb9
commit d36f6e7f24

View File

@ -252,7 +252,7 @@ class BaseField(object):
elif value_to_check not in self.choices:
msg = ('Value must be %s of %s' %
(err_msg, unicode(self.choices)))
self.error()
self.error(msg)
# check validation argument
if self.validation is not None: