Unquote boolean values when normalizing.
This commit is contained in:
@@ -444,6 +444,8 @@ class Boolean(Column):
|
|||||||
|
|
||||||
def validate(self, value):
|
def validate(self, value):
|
||||||
""" Always returns a Python boolean. """
|
""" Always returns a Python boolean. """
|
||||||
|
if isinstance(value, self.Quoter):
|
||||||
|
value = value.value
|
||||||
return bool(value)
|
return bool(value)
|
||||||
|
|
||||||
def to_python(self, value):
|
def to_python(self, value):
|
||||||
|
|||||||
Reference in New Issue
Block a user