fixed a typo in validators, thanks Paolo
This commit is contained in:
+1
-1
@@ -670,7 +670,7 @@ class IS_IN_DB(Validator):
|
|||||||
try:
|
try:
|
||||||
value = int(value)
|
value = int(value)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
return (values, translate(self.error_message))
|
return (value, translate(self.error_message))
|
||||||
|
|
||||||
if self.theset:
|
if self.theset:
|
||||||
if str(value) in self.theset:
|
if str(value) in self.theset:
|
||||||
|
|||||||
Reference in New Issue
Block a user