Unquote boolean values when normalizing.

This commit is contained in:
Kevin Deldycke
2014-01-22 11:54:27 +01:00
parent ac2dd3aa5b
commit 3d2268c6e8

View File

@@ -444,6 +444,8 @@ class Boolean(Column):
def validate(self, value):
""" Always returns a Python boolean. """
if isinstance(value, self.Quoter):
value = value.value
return bool(value)
def to_python(self, value):