fix: fix default form value logic for bool checkbox fields
This commit is contained in:
parent
24ddb7b905
commit
3d9fbd598e
|
@ -1002,7 +1002,7 @@ class Form:
|
|||
# for now we explicitly translate here, ugh. also
|
||||
# note this does not yet allow for null values.. :(
|
||||
if isinstance(field.typ, colander.Boolean):
|
||||
value = True if field.typ.true_val else False
|
||||
value = True if value == field.typ.true_val else False
|
||||
|
||||
model_data[field.oid] = make_json_safe(value)
|
||||
|
||||
|
|
Loading…
Reference in a new issue