fixed a typo in validators, thanks Paolo

This commit is contained in:
mdipierro
2018-06-15 05:08:12 +02:00
parent 09271bff5f
commit d7624b95f8

View File

@@ -670,7 +670,7 @@ class IS_IN_DB(Validator):
try:
value = int(value)
except TypeError:
return (values, translate(self.error_message))
return (value, translate(self.error_message))
if self.theset:
if str(value) in self.theset: