diff --git a/sqladmin/helpers.py b/sqladmin/helpers.py index 072ecf74..4e681c96 100644 --- a/sqladmin/helpers.py +++ b/sqladmin/helpers.py @@ -225,7 +225,9 @@ def object_identifier_values(id_string: str, model: Any) -> tuple: values = [] pks = get_primary_keys(model) for pk, part in zip(pks, _object_identifier_parts(id_string, model)): - values.append(get_column_python_type(pk)(part)) + type_ = get_column_python_type(pk) + value = False if type_ is bool and part == "False" else type_(part) + values.append(value) return tuple(values)