from discord
Bery
I found a bug in EditTable - create_form/edit_form
if you have some fields required or with any validators, on bind they get validated form.py#L914 - which sets errors, because iommi_path is "wrong", so the value is None (invalid)
plus it should not probably call post_validation on bind
and _valid=False bubbles to parent_form._valid and because of this form.py#L1951 the parent_form.is_valid() returns False even tho everything was ok
so, the best thing would be not to validate creat_form/edit_form on bind, but how? 🤔
or, actually, the best thing would be to somehow take the validation from edit_table__post_handler and do it on bind, but that's even harder I guess
boxed
I guess one could have a hook point for validation on the form level, so that when edit table creates those forms it can specify a specific global validator that skips validation of the fields
from discord
Bery
I found a bug in EditTable - create_form/edit_form
if you have some fields required or with any validators, on bind they get validated
form.py#L914- which sets errors, because iommi_path is "wrong", so the value is None (invalid)plus it should not probably call
post_validationon bindand
_valid=Falsebubbles toparent_form._validand because of thisform.py#L1951theparent_form.is_valid()returns False even tho everything was okso, the best thing would be not to validate creat_form/edit_form on bind, but how? 🤔
or, actually, the best thing would be to somehow take the validation from
edit_table__post_handlerand do it on bind, but that's even harder I guessboxed
I guess one could have a hook point for validation on the form level, so that when edit table creates those forms it can specify a specific global validator that skips validation of the fields